Support - Forum aa

« Back to Support
Flash Library » Disabling Z-Buffer

» Disabling Z-Buffer

Posted on 10.27.2011 by Cavalcanti, Eduardo
Hi guys,

I'm looking for a Stage3D API to my app but I need to disable z-buffer test to make an effect like css z-index.
After reading your docs I didn't found a way to do this. It's possible?

Thanks!
Edu
|
Share this
 
Reply By Nehmad, Ariel 10.27.2011
Hi Eduardo, you can dissable the z-buffer on the materials.

material.depthWrite = false;
material.depthCompare = "always"