I want to create a surface shader that outputs a grayscale value based on the pixel's z value. How can I do that?
Feb 29 '12 at 04:31 PM
Feb 29 '12 at 01:17 PM
Here you go.
To more experiences guys : is it possible to retrieve some depth information in vertex shader with position.w * frustrumLength ?
Feb 29 '12 at 04:59 PM
Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.
Once you sign in you will be able to subscribe for any updates here
Answers and Comments
The best place to ask and answer questions about development with Unity. Check out our FAQ for more information.
To help users post good questions and use the site effectively we have posted a tutorial video. Please check it out.
surface shader x28
asked: Feb 29 '12 at 04:31 PM
Seen: 608 times
Last Updated: Feb 29 '12 at 04:59 PM
How to force the compilation of a shader in Unity?
Unity 3, Why custom Surface Shader (Transparent Reflective) doesn't render against background?
How to Tell which part of surface shader belongs to which pass in deferred shading?
How can I use more than 3 texture channels in a Surface Shader?
Depth-only pass in Surface Shader
Passing variables from Script to a Shader
Adding Spheremap reflection and Gloss/Shininess controls to a Sruface Shader
how to add bumpmap to MirrorReflection as surface shader
Alpha in surface shader
asign surface shader to material