mirror of
https://github.com/FriendshipIsEpic/FiE-Game.git
synced 2024-11-26 07:18:00 +01:00
85 lines
1.8 KiB
Text
85 lines
1.8 KiB
Text
Shader "Hidden/Post FX/Temporal Anti-aliasing"
|
|
{
|
|
Properties
|
|
{
|
|
_MainTex("", 2D) = "black"
|
|
}
|
|
|
|
SubShader
|
|
{
|
|
Cull Off ZWrite Off ZTest Always
|
|
|
|
// Perspective
|
|
Pass
|
|
{
|
|
CGPROGRAM
|
|
#pragma target 5.0
|
|
#pragma vertex VertSolver
|
|
#pragma fragment FragSolver
|
|
#include "TAA.cginc"
|
|
ENDCG
|
|
}
|
|
|
|
// Ortho
|
|
Pass
|
|
{
|
|
CGPROGRAM
|
|
#pragma target 5.0
|
|
#pragma vertex VertSolver
|
|
#pragma fragment FragSolver
|
|
#define TAA_DILATE_MOTION_VECTOR_SAMPLE 0
|
|
#include "TAA.cginc"
|
|
ENDCG
|
|
}
|
|
|
|
// Alpha Clear
|
|
Pass
|
|
{
|
|
CGPROGRAM
|
|
#pragma target 5.0
|
|
#pragma vertex VertDefault
|
|
#pragma fragment FragAlphaClear
|
|
#include "TAA.cginc"
|
|
ENDCG
|
|
}
|
|
}
|
|
|
|
SubShader
|
|
{
|
|
Cull Off ZWrite Off ZTest Always
|
|
|
|
// Perspective
|
|
Pass
|
|
{
|
|
CGPROGRAM
|
|
#pragma target 3.0
|
|
#pragma vertex VertSolver
|
|
#pragma fragment FragSolver
|
|
#include "TAA.cginc"
|
|
ENDCG
|
|
}
|
|
|
|
// Ortho
|
|
Pass
|
|
{
|
|
CGPROGRAM
|
|
#pragma target 3.0
|
|
#pragma vertex VertSolver
|
|
#pragma fragment FragSolver
|
|
#define TAA_DILATE_MOTION_VECTOR_SAMPLE 0
|
|
#include "TAA.cginc"
|
|
ENDCG
|
|
}
|
|
|
|
// Alpha Clear
|
|
Pass
|
|
{
|
|
CGPROGRAM
|
|
#pragma target 3.0
|
|
#pragma vertex VertDefault
|
|
#pragma fragment FragAlphaClear
|
|
#include "TAA.cginc"
|
|
ENDCG
|
|
}
|
|
}
|
|
}
|