您最多选择25个主题
主题必须以中文或者字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符
85 行
1.8 KiB
85 行
1.8 KiB
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
|
|
}
|
|
}
|
|
}
|