2016-11-01 13:25:56 +01:00
|
|
|
Shader "Hidden/Shadowmap" {
|
2022-02-19 01:22:32 +01:00
|
|
|
SubShader{
|
|
|
|
Tags {
|
|
|
|
"RenderType" = "Opaque"
|
|
|
|
}
|
|
|
|
Pass {
|
|
|
|
Fog { Mode Off }
|
|
|
|
Cull Back
|
|
|
|
CGPROGRAM
|
|
|
|
#pragma vertex vert
|
|
|
|
#pragma fragment frag
|
|
|
|
#include "UnityCG.cginc"
|
2016-11-01 13:25:56 +01:00
|
|
|
|
2022-02-19 01:22:32 +01:00
|
|
|
struct v2f
|
|
|
|
{
|
|
|
|
float4 pos : SV_POSITION;
|
|
|
|
};
|
2016-11-01 13:25:56 +01:00
|
|
|
|
2022-02-19 01:22:32 +01:00
|
|
|
v2f vert(appdata_base v)
|
|
|
|
{
|
|
|
|
v2f o;
|
|
|
|
o.pos = UnityObjectToClipPos(v.vertex);
|
|
|
|
return o;
|
|
|
|
}
|
2016-11-01 13:25:56 +01:00
|
|
|
|
2022-02-19 01:22:32 +01:00
|
|
|
float4 frag(v2f i) : COLOR
|
|
|
|
{
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
ENDCG
|
|
|
|
}
|
|
|
|
}
|
2016-11-01 13:25:56 +01:00
|
|
|
}
|