I'm trying to render a texture which has a mix of fully-transparent pixels, and fully-opaque pixels. It seems like my only option is to render them distance-wise back-to-front (after all fully opaque polygons), because even the fully-transparent pixels update the depth buffer, but I'm not sure that's accurate. Is it?
It seems like the fragment shader could be told to leave the depth buffer alone for transparent pixels, but apparently not. Am I missing anything?
Is there some other sensible way to render highly-irregularly-shaped images other than lots of polygons that I'm not thinking of?
vec2()
is redundant if vTextureCoord is avec2
, and if it isn't,vTextureCoord.st
suffices. – Histrionism