Hi,
I need the shader Transparent > Diffuse to be self Illumin. How can I do that?
I have that custom shader that makes the same as the shader Transparent > Diffuse :
How can I add self illumin ?
Thanks !
Hi,
I need the shader Transparent > Diffuse to be self Illumin. How can I do that?
I have that custom shader that makes the same as the shader Transparent > Diffuse :
How can I add self illumin ?
Thanks !
smthing like this?
Shader "Transparent/Diffuse with Self Illumination" { Properties { _Color ("Main Color", Color) = (1,1,1,1) _MainTex ("Base (RGB) Trans (A)", 2D) = "white" {} _IlluminationPower ("Illumination Power", Range(0, 1)) = 0.2 } SubShader { Tags {"Queue"="Transparent" "IgnoreProjector"="True" "RenderType"="Transparent"} LOD 250 CGPROGRAM #pragma surface surf Lambert alpha sampler2D _MainTex; fixed4 _Color; fixed _IlluminationPower; struct Input { float2 uv_MainTex; }; void surf (Input IN, inout SurfaceOutput o) { fixed4 c = tex2D(_MainTex, IN.uv_MainTex) * _Color; o.Albedo = c.rgb; o.Alpha = c.a; o.Emission = c.rgb * _IlluminationPower; } ENDCG } Fallback "Transparent/Diffuse" }