Question by
skyparticle99ii · Mar 26, 2020 at 06:17 PM ·
shadersgraphicshlsl
In ShaderLab, does alpha blending automatically turn off writing into depth buffer?
I have two semi transparent squares, one in front of another. So i want the one in the front to occlude the one behind, so that further square would not be visible behind closer square. Essentually i want to use normal depth testing and at the same time use alpha blending. But it doesn't seem to work, instead both squares just add their colors where one is supposed to occlude another
Comment