1
0
mirror of https://github.com/xiaopeng12138/MaiDXR.git synced 2024-12-19 04:15:53 +01:00
MaiDXR/Assets/LIV/Resources/Shaders/LIV_ClipPlaneSimple.shader

48 lines
820 B
Plaintext
Raw Normal View History

2022-08-19 23:02:51 +02:00
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
}
}
}