FSR2 tests in Unity based on built-in render pipeline
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
525 B

Shader "FSR2/CopyMotionVectors"
{
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_half _CameraMotionVectorsTexture;
fixed4 frag(v2f i) : COLOR
{
return tex2D(_CameraMotionVectorsTexture, i.texCoord);
}
ENDHLSL
}
}
Fallback Off
}