- Home /
Question by
dyankov · Oct 21, 2013 at 03:38 PM ·
texturerenderingmaterialtransparent-texture
Messy normals with Transparent material
Hi, I need to control an object's opacity programatically and I ended up assigning a Transparent/Diffuse material to it and setting it like this:
... .renderer.material.color.a = 0;
The problem is that the normals of the mesh look flipped when this material is applied. Is there another solution to control an object's opacity without this Transparent material?
Thanks
Comment
This is a low-quality question without a picture. $$anonymous$$y best guess is that you forgot to do a depth write pass. http://wiki.unity3d.com/index.php?title=AlphaVertexLitZ