Tasharen Entertainment Forum
Support => NGUI 3 Support => Topic started by: Talsidor on June 01, 2014, 09:27:07 PM
-
Hey everyone,
I've created a few prefab toolbar entries for 3D objects, and set up custom snapshot points for them, but all the snapshots show up as the level's skybox with a greyed out sillouhette of the object's mesh over the top.
I turned off fog and adjusted level lighting, but they made no difference to the snapshot. Any suggestions?
The attached image demonstrates the issue.
Thanks :)
-
What shader is used by the object? Transparent shaders write to alpha, and generally should not be mixed with render textures due to how Unity works.
-
What shader is used by the object? Transparent shaders write to alpha, and generally should not be mixed with render textures due to how Unity works.
Hi Aren,
The object is using the built-in Unity toon shader. No transparency.
-
Unity doesn't have a built-in toon shader... And the fact that it doesn't have transparency doesn't mean that the shader isn't using the alpha channel for something.
For example the default diffuse shader that comes with Unity uses the alpha channel to specify "glow" areas (legacy glow system that hasn't been used in years), resulting in all objects coming out semi-transparent when rendered into a texture.
-
Sorry, by built-in I mean it's a Standard Asset, in the Toon Shading package. Looking at the shader it seems to just set the alpha to 0, could that be causing it?
-
Yup, that would do it. It writes to the alpha channel, and marks it as zero, thus resulting in a fully transparent set of pixels that still write to depth. Change it to 1.
-
Yep working great now. Thanks :)