Does anyone know how to flip textures in Silk.NET OpenGL?

I am very new to Silk.NET and OpenGL, does anyone know how to flip textures? I've tried making the texture Y parameters 0.0 and -1.0 but neither work. Sorry if it is an obvious answer but I really dont know.
3 Replies
cap5lut
cap5lut2mo ago
to differentiate between positional coordinates and texture coordinates the latter are usually called UV instead of XY btw. to flip the texture you would have to swap the 0 and 1 V value, so if ur UV coordinates are currently
0, 0
1, 0
1, 1
0, 1
0, 0
1, 0
1, 1
0, 1
it would have to become
0, 1
1, 1
1, 0
0, 0
0, 1
1, 1
1, 0
0, 0
jebidi4h_mothman
jebidi4h_mothmanOP2mo ago
ohhh that makes sense i was messing with the shader code
cap5lut
cap5lut2mo ago
well, i guess u could do that in the vertex shader as well, u would then just have to calculate the new V with 1 - v
Want results from more Discord servers?
Add your server