Whenever I make changes to the shader, it does not apply to the image. I change the _Color (“Main Color”, Color) = (0.1, 0, 0, 0.5) but no changes. And the effect is different in different images.
I have an image like this
And a custom shader (taken from Random Thoughts of a Game Developer: Creating a Colored Unlit Alpha Texture Shader for Unity)
Shader "NAKAI/Unlit/Transparent Colored" {
Properties {
// Adds Color field we can modify
_Color ("Main Color", Color) = (1,1,1,1)
_MainTex ("Base (RGB)", 2D) = "white" {}
}
SubShader {
Tags {"Queue"="Transparent" "IgnoreProjector"="True" "RenderType"="Transparent"}
LOD 100
ZWrite Off
Blend SrcAlpha OneMinusSrcAlpha
Pass {
Lighting Off
SetTexture [_MainTex] {
// Sets _Color as the 'constant' variable
constantColor[_Color]
// Multiplies color (in constant) with texture
combine constant * texture
}
}
}
}
Why the changes doesn’t take place and the effect is different? Is there something wrong with the shader? Do you have any other shader for alpha coloured?