This repository was archived by the owner on Nov 30, 2020. It is now read-only.
File tree Expand file tree Collapse file tree 10 files changed +11
-11
lines changed
PostProcessing/Resources/Shaders Expand file tree Collapse file tree 10 files changed +11
-11
lines changed Original file line number Diff line number Diff line change @@ -164,7 +164,7 @@ VaryingsMultitex VertMultitex(AttributesDefault v)
164
164
#endif
165
165
166
166
VaryingsMultitex o;
167
- o.pos = mul (UNITY_MATRIX_MVP, v.vertex);
167
+ o.pos = UnityObjectToClipPos ( v.vertex);
168
168
o.uv = v.texcoord.xy;
169
169
o.uv01 = uvAlt;
170
170
o.uvSPR = UnityStereoTransformScreenSpaceTex (uvAlt);
Original file line number Diff line number Diff line change @@ -19,7 +19,7 @@ Shader "Hidden/Post FX/Blit"
19
19
Varyings VertBlit (AttributesDefault v)
20
20
{
21
21
Varyings o;
22
- o.vertex = mul ( UNITY_MATRIX_MVP , v.vertex);
22
+ o.vertex = UnityObjectToClipPos ( v.vertex);
23
23
o.uv = UnityStereoScreenSpaceUVAdjust (v.texcoord, _MainTex_ST);
24
24
return o;
25
25
}
Original file line number Diff line number Diff line change @@ -60,7 +60,7 @@ Shader "Hidden/Post FX/Bloom"
60
60
VaryingsMultitex VertMultitex (AttributesDefault v)
61
61
{
62
62
VaryingsMultitex o;
63
- o.pos = mul ( UNITY_MATRIX_MVP , v.vertex);
63
+ o.pos = UnityObjectToClipPos ( v.vertex);
64
64
o.uvMain = UnityStereoScreenSpaceUVAdjust (v.texcoord.xy, _MainTex_ST);
65
65
o.uvBase = o.uvMain;
66
66
Original file line number Diff line number Diff line change @@ -39,7 +39,7 @@ struct VaryingsDefault
39
39
VaryingsDefault VertDefault (AttributesDefault v)
40
40
{
41
41
VaryingsDefault o;
42
- o.pos = mul (UNITY_MATRIX_MVP, v.vertex);
42
+ o.pos = UnityObjectToClipPos ( v.vertex);
43
43
o.uv = v.texcoord.xy;
44
44
o.uvSPR = UnityStereoScreenSpaceUVAdjust (v.texcoord.xy, _MainTex_ST);
45
45
return o;
Original file line number Diff line number Diff line change @@ -34,12 +34,12 @@ VaryingsDOF VertDOF(AttributesDefault v)
34
34
#endif
35
35
36
36
VaryingsDOF o;
37
- #if defined (UNITY_SINGLE_PASS_STEREO)
38
37
o.pos = UnityObjectToClipPos (v.vertex);
38
+
39
+ #if defined (UNITY_SINGLE_PASS_STEREO)
39
40
o.uv = UnityStereoScreenSpaceUVAdjust (v.texcoord, _MainTex_ST);
40
41
o.uvAlt = UnityStereoScreenSpaceUVAdjust (uvAlt, _MainTex_ST);
41
42
#else
42
- o.pos = mul (UNITY_MATRIX_MVP, v.vertex);
43
43
o.uv = v.texcoord;
44
44
o.uvAlt = uvAlt;
45
45
#endif
Original file line number Diff line number Diff line change @@ -134,7 +134,7 @@ Shader "Hidden/Post FX/Eye Adaptation"
134
134
VaryingsEditorHisto VertEditorHisto (AttributesDefault v)
135
135
{
136
136
VaryingsEditorHisto o;
137
- o.pos = mul ( UNITY_MATRIX_MVP , v.vertex);
137
+ o.pos = UnityObjectToClipPos ( v.vertex);
138
138
o.uv = v.texcoord.xy;
139
139
o.maxValue = 1.0 / FindMaxHistogramValue ();
140
140
o.avgLuminance = GetAverageLuminance (o.maxValue);
Original file line number Diff line number Diff line change @@ -59,7 +59,7 @@ struct VaryingsMultitex
59
59
VaryingsMultitex VertMultitex (AttributesDefault v)
60
60
{
61
61
VaryingsMultitex o;
62
- o.pos = mul (UNITY_MATRIX_MVP, v.vertex);
62
+ o.pos = UnityObjectToClipPos ( v.vertex);
63
63
o.uv0 = v.texcoord.xy;
64
64
o.uv1 = v.texcoord.xy;
65
65
Original file line number Diff line number Diff line change @@ -97,7 +97,7 @@ Shader "Hidden/Post FX/Screen Space Reflection"
97
97
{
98
98
v2f o;
99
99
100
- o.pos = mul ( UNITY_MATRIX_MVP , v.vertex);
100
+ o.pos = UnityObjectToClipPos ( v.vertex);
101
101
o.uv = v.texcoord.xy;
102
102
o.uv2 = v.texcoord.xy;
103
103
Original file line number Diff line number Diff line change @@ -58,7 +58,7 @@ VaryingsSolver VertSolver(AttributesDefault input)
58
58
{
59
59
VaryingsSolver output;
60
60
61
- float4 vertex = mul (UNITY_MATRIX_MVP, input.vertex);
61
+ float4 vertex = UnityObjectToClipPos ( input.vertex);
62
62
63
63
output.vertex = vertex;
64
64
output.uv = input.texcoord.xyxy;
Original file line number Diff line number Diff line change @@ -86,7 +86,7 @@ Shader "Hidden/Post FX/Uber Shader"
86
86
VaryingsFlipped VertUber (AttributesDefault v)
87
87
{
88
88
VaryingsFlipped o;
89
- o.pos = mul ( UNITY_MATRIX_MVP , v.vertex);
89
+ o.pos = UnityObjectToClipPos ( v.vertex);
90
90
o.uv = v.texcoord.xy;
91
91
o.uvSPR = UnityStereoScreenSpaceUVAdjust (v.texcoord.xy, _MainTex_ST);
92
92
o.uvFlipped = v.texcoord.xy;
You can’t perform that action at this time.
0 commit comments