You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
34 lines
500 B
34 lines
500 B
Shader "FSR2/FSR2CopyDepth"
|
|
{
|
|
Properties
|
|
{
|
|
_MainTex ("Texture", 2D) = "" {}
|
|
}
|
|
SubShader {
|
|
|
|
Pass {
|
|
ZTest Always Cull Off ZWrite Off
|
|
|
|
HLSLPROGRAM
|
|
#include "UnityCG.cginc"
|
|
|
|
struct v2f {
|
|
float4 vertex : SV_POSITION;
|
|
float2 texCoord : TEXCOORD0;
|
|
};
|
|
|
|
#pragma vertex vert_img
|
|
#pragma fragment frag
|
|
|
|
sampler2D _CameraDepthTexture;
|
|
|
|
fixed4 frag(v2f i) : COLOR
|
|
{
|
|
return tex2D(_CameraDepthTexture, i.texCoord);
|
|
}
|
|
ENDHLSL
|
|
|
|
}
|
|
}
|
|
Fallback Off
|
|
}
|