PDA

View Full Version : Texture bleeding using a sample2D array.



Bollie
10-09-2016, 02:01 AM
I'm new to OpenGL and i'm creating a 2D batch renderer. Everything works fine now, textures, scaling, blending, rotation, but, when an object is rotating somewhere on the screen, other objects get this weird texture glitching (bleeding?) on the corner:
2296
I am using a sampler2D array for changing between textures in the shader.

Please ask for any code, if needed!

john_connor
10-09-2016, 03:26 AM
Please ask for any code, if needed!

show us how you are building the array texture
show us the fragment shader code