Hello, I have a simple shader because I need to show the player behind the walls, but my shader don’t cast shadows, anybody can help me please?
Shader "Unlit/ThrowWall"
{
Properties
{
_Color("Main Color", Color) = (1,1,1,1)
_MainTex("Base (RGB) Gloss (A)", 2D) = "white" {}
}
Category
{
SubShader
{
Tags { "Queue" = "Transparent+1" }
LOD 100
Pass
{
Cull Off
ZWrite Off
ZTest Greater
Lighting Off
Color[_Color]
}
Pass
{
ZTest Less
SetTexture[_MainTex] {combine texture}
}
}
}
FallBack "Specular", 1
}
My shader.
Standard shader