- Home /
Add shadow receiver to 3D text shader.
Hi, as the subject I would like to add a shadow receiver to my 3D text shader (take from the unity wiki):
Below my code :
Shader "GUI/3D Text Shader" { Properties { _MainTex ("Font Texture", 2D) = "white" {} _Color ("Text Color", Color) = (1,1,1,1) }
 SubShader {
     Tags { "Queue"="Transparent" "IgnoreProjector"="True" "RenderType"="Transparent" }
     Lighting Off Cull Off ZWrite Off Fog { Mode Off }
     Blend SrcAlpha OneMinusSrcAlpha
     Pass {
         Color [_Color]
         SetTexture [_MainTex] {
             combine primary, texture * primary
         }
     }
 }
}
Thanks
               Comment
              
 
               
              Research.
Attempt.
Fail.
Post Question.
Is that code your own or from the wiki (or modified from the wiki, which is ok)?
The code comes from here http://wiki.unity3d.com/index.php?title=3DText
Same and more detailed question (without any answer yet :( ) here:
Your answer
 
 
              koobas.hobune.stream
koobas.hobune.stream 
                       
                
                       
			     
			 
                