Timeline for 9 Slicing in OpenGL, want to have the center of the texture repeat instead of stretch
Current License: CC BY-SA 4.0
7 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| Jul 28, 2024 at 5:44 | vote | accept | starrider | ||
| Jul 27, 2024 at 4:16 | answer | added | starrider | timeline score: 1 | |
| Jul 15, 2024 at 22:48 | comment | added | starrider | Sorry, I can't attach images to comments and I was under the impression I'm not supposed to "answer" with additional questions or clarifications. Attempting the suggested update, we're definitely getting closer, but there is still some odd stretching imgur.com/RR6J6ri | |
| Jul 15, 2024 at 17:52 | comment | added | Blindman67 | You should not change a question once an answer is given. I don't have a platform to test at the moment, i will remove my answer and fix it if I get a chance. The line return mod(val - min, innerSize) + innerStart; needs to change the scale of val - min eg return mod((val - min) * scale, innerSize) + innerStart; where scale is passed as a argument and is the ratio of tBorder and wBorder which way round?not sure eg scale = (1.0 - wBorder * 2.0) / (1.0 - tBorder * 2.0) or scale = (1.0 - tBorder * 2.0) / (1.0 - wBorder * 2.0) | |
| Jul 15, 2024 at 15:41 | history | edited | starrider | CC BY-SA 4.0 | added 1155 characters in body |
| Jul 14, 2024 at 12:05 | history | edited | Kromster | CC BY-SA 4.0 | deleted 14 characters in body |
| Jul 13, 2024 at 19:29 | history | asked | starrider | CC BY-SA 4.0 |