- Home /
LineRenderer not affected by material alpha setting
Why does the LineRenderer not appear to respect the material alpha value set in SetColors? I'm setting it to values from 0.9 to 0.0, but the opaqueness never seems to vary. Why is this?
Answer by jbishop · Dec 29, 2009 at 01:15 PM
Check your shader. The following worked for me:
Shader "line" { Properties { _Color ("Color Tint", Color) = (1,1,1,1) _MainTex ("SelfIllum Color (RGB) Alpha (A)", 2D) = "white" } Category { Lighting On ZWrite Off Cull Back Blend SrcAlpha OneMinusSrcAlpha Tags {Queue=Transparent} SubShader { Material { Emission [_Color] } Pass { SetTexture [_MainTex] { Combine Texture Primary, Texture Primary } } } } }
yeah the material shader was my problem too. set it to particles additive for the effect i wanted.
Your answer
Follow this Question
Related Questions
what is the easiest way to render things in alpha channel? 0 Answers
Cutout Shader getting Opaque when turning alpha off and on again 1 Answer
What can I do to solve problems of z-fighting with sprites in a 3d world 2 Answers
Material.SetOverrideTag seems to be broken for changing RenderType at least. 0 Answers
appear/disappear gameobject 3 Answers