37 lines
813 B
Plaintext
37 lines
813 B
Plaintext
Shader "Hidden/ScriptableRenderPipeline/ShadowClear"
|
|
{
|
|
HLSLINCLUDE
|
|
#pragma target 4.5
|
|
#pragma only_renderers d3d11 playstation xboxone xboxseries vulkan metal switch
|
|
|
|
#include "Packages/com.unity.render-pipelines.core/ShaderLibrary/Common.hlsl"
|
|
ENDHLSL
|
|
|
|
SubShader
|
|
{
|
|
Pass
|
|
{
|
|
Name "ClearShadow"
|
|
ZTest Always
|
|
Cull Off
|
|
ZWrite On
|
|
|
|
HLSLPROGRAM
|
|
|
|
#pragma vertex Vert_0
|
|
#pragma fragment Frag
|
|
|
|
float4 Vert_0( uint vertexID : VERTEXID_SEMANTIC ) : SV_POSITION
|
|
{
|
|
return GetFullScreenTriangleVertexPosition( vertexID, UNITY_RAW_FAR_CLIP_VALUE );
|
|
}
|
|
|
|
void Frag() { }
|
|
|
|
|
|
ENDHLSL
|
|
}
|
|
}
|
|
Fallback Off
|
|
}
|