|
I have a scrolling background shader that I am trying to add transparency two, but I can't seem to get it working. Can anyone help me out with this?
(comments are locked)
|
|
Add the blend mode after ZWrite Off: I ended up rewriting the shader, but your answer was what I needed thanks!
Apr 25 '12 at 06:39 AM
deus_duke
Hey Deus, Do you think you could post your functional shader code? I'm having a similar problem. Thanks!
Jun 16 '12 at 07:49 PM
z4rd0z
(comments are locked)
|
|
Sure. Instead of multiplying to overlay a texture with alpha, you need to use lerp. // - Scroll 3 layers /w Multiplicative op Shader "BRS/Environment/Scroll 3 Layers" { Properties { _MainTex ("Base layer (RGB)", 2D) = "white" {} _FarTex ("2nd layer (RGB)", 2D) = "black" {} _NearTex ("2nd layer (RGB)", 2D) = "black" {} _ScrollX ("Base layer Scroll speed X", Float) = 0.1 _ScrollY ("Base layer Scroll speed Y", Float) = 0.0 _Scroll2X ("2nd layer Scroll speed X", Float) = 0.5 _Scroll2Y ("2nd layer Scroll speed Y", Float) = 0.0 _Scroll3X ("3nd layer Scroll speed X", Float) = 1.0 _Scroll3Y ("3nd layer Scroll speed Y", Float) = 0.0 _ColorIntensity ("Layer Multiplier", Float) = 0.5 } }
(comments are locked)
|
