This repository was archived by the owner on Nov 30, 2020. It is now read-only.
File tree Expand file tree Collapse file tree
PostProcessing/Resources/Shaders Expand file tree Collapse file tree Original file line number Diff line number Diff line change 66#include "DiskKernels.cginc"
77
88#define PREFILTER_LUMA_WEIGHT 1
9- #pragma target 3.0
109
1110sampler2D_float _CameraDepthTexture;
1211sampler2D_float _HistoryCoC;
@@ -101,7 +100,7 @@ half4 FragPrefilter(VaryingsDOF i) : SV_Target
101100struct Output
102101{
103102 half4 base : SV_Target0 ;
104- half history : SV_Target1 ;
103+ half4 history : SV_Target1 ;
105104};
106105
107106Output FragAntialiasCoC (VaryingsDOF i)
@@ -113,7 +112,7 @@ Output FragAntialiasCoC(VaryingsDOF i)
113112
114113 Output output;
115114 output.base = half4 (base.rgb, nCoC);
116- output.history = nCoC;
115+ output.history = nCoC.xxxx ;
117116 return output;
118117}
119118
Original file line number Diff line number Diff line change @@ -5,6 +5,11 @@ Shader "Hidden/Post FX/Depth Of Field"
55 _MainTex ( "" , 2D ) = "black"
66 }
77
8+ CGINCLUDE
9+ #pragma exclude_renderers d3d11_9x
10+ #pragma target 3.0
11+ ENDCG
12+
813 SubShader
914 {
1015 Cull Off ZWrite Off ZTest Always
@@ -15,7 +20,6 @@ Shader "Hidden/Post FX/Depth Of Field"
1520 CGPROGRAM
1621 #pragma vertex VertDOF
1722 #pragma fragment FragPrefilter
18- #pragma target 3.0
1923 #include "DepthOfField.cginc"
2024 ENDCG
2125 }
You can’t perform that action at this time.
0 commit comments