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
↧