1
0
mirror of https://github.com/xiaopeng12138/MaiDXR.git synced 2024-11-30 21:47:16 +01:00
MaiDXR/Assets/LIV/Resources/Shaders/LIV_ClipPlaneSimple.shader
2022-08-19 23:02:51 +02:00

48 lines
820 B
Plaintext

Shader "Hidden/LIV_ClipPlaneSimple"
{
SubShader
{
Tags { "Queue" = "Overlay" "LightMode" = "Always" "IgnoreProjector" = "True" "ForceNoShadowCasting" = "True"}
Pass {
Name "CLIP_PLANE_SIMPLE"
Cull Off
ZWrite On
Blend Off
Fog{ Mode Off }
ColorMask[_LivColorMask]
CGPROGRAM
#pragma target 4.6
#pragma vertex VertexProgram
#pragma fragment FragmentProgram
#include "UnityCG.cginc"
struct VertexData {
float4 vertex : POSITION;
};
struct VertexToFragData {
float4 vertex : POSITION;
};
VertexToFragData VertexProgram(VertexData v)
{
VertexToFragData o;
o.vertex = UnityObjectToClipPos(v.vertex);
return o;
}
fixed4 FragmentProgram(VertexToFragData i) : SV_Target
{
return fixed4(0, 0, 0, 0);
}
ENDCG
}
}
}