glBlend y efecto extraño para geometría superpuesta

Suppose I have two squares which have the same y value and which partially overlap in the xz plane. I want to use alpha blending,


so that parts of the textures mapped to the square geometry are transparent (depending on what the alpha values are)

However, because the y values are the some, when rendering there are strange visual effects (all I can describe the effect as is "shredded" looking or in some cases one texture obscures the other).

If I "separate" the two squares so that the y values are 0 and 0.1, this effect goes away. Is there anything I can do to stop this from happening without having to "separate" the squares?

Gracias de antemano.

preguntado el 28 de mayo de 14 a las 11:05

try disabling DepthTest -

1 Respuestas

In case others are having the same problem, the following worked for me:

        // draw here...

Easy once you know.

contestado el 28 de mayo de 14 a las 15:05

No es la respuesta que estás buscando? Examinar otras preguntas etiquetadas or haz tu propia pregunta.