Quantcast
Channel: Latest Questions by karl_
Viewing all articles
Browse latest Browse all 90

Add Color Property to Unlit Alpha?

$
0
0
I'm attempting to add a Color field to the existing Unlit/Transparent shader. Here is what I have so far (Compiles, but does not actually modify the color): Shader "Custom/Unlit Transparent Color" { Properties { _Color ("Main Color", COLOR) = (1,1,1,1) _MainTex ("Base (RGB) Trans (A)", 2D) = "white" {} } SubShader { Tags {"Queue"="Transparent" "IgnoreProjector"="True" "RenderType"="Transparent"} LOD 100 ZWrite Off Blend SrcAlpha OneMinusSrcAlpha Material { Diffuse [_Color] } Pass { Lighting Off SetTexture [_MainTex] { combine texture } } } }

Viewing all articles
Browse latest Browse all 90

Trending Articles