Hello I’ve got a problem receiving shadows on my custom shader.
I’ve got a mesh with 2 Materials:
The road material is a built in diffuse shader. And there (as you may see) I can receive shadows.
The second material is a custom shader, ant there I cannot see any shadow.
I’ve tried several shaders, and no one cast any shader (except for the built in shaders).
Any help would be apreciated.
PD: I’m using unity free
Here’s my custom shader.
Shader "Blend 2 Textures" {
Properties {
_Blend ("Blend", Range (0, 1) ) = 0.5
_MainTex ("Texture 1", 2D) = ""
_Texture2 ("Texture 2", 2D) = ""
}
SubShader {
Lighting On
Pass {
SetTexture[_MainTex]
SetTexture[_Texture2] {
ConstantColor (0,0,0, [_Blend])
Combine texture Lerp(constant) previous
}
}
}
}

