- Home /
Unity 5 Broke my shader?
Hello all,
I was forced to upgrade to Unity 5 as Google Chrome does not support Unity anymore, but that's not the issue. The issue is, my projection decal shader worked in 4.6 but in Unity 5 it doesn't work properly.
Shader "AoE Target/Alpha Blend"
{
Properties
{
_Color ("Main Color", Color) = (1,1,1,1)
_Tex ("Texture", 2D) = "" { TexGen ObjectLinear }
}
Subshader
{
Pass
{
ZWrite off
Fog { Color (0, 0, 0) }
Color [_Color]
ColorMask RGB
Blend OneMinusSrcAlpha SrcAlpha
Offset -1, -1
SetTexture [_Tex] {
combine texture * primary, ONE - texture
Matrix [_Projector]
}
}
}
}
Please help :-).
Comment
Your answer
Follow this Question
Related Questions
Has anyone managed to make a decal shader with shadow support? 1 Answer
Change material GameObject locally 1 Answer
Fading off texture and multiple instances 0 Answers
Decals in Unity 5? 0 Answers
Decal stretching on rotated planes 1 Answer