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/Shaders/Builtins Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -64,15 +64,13 @@ Shader "Hidden/PostProcessing/GrainBaker"
6464
6565 float4 FragGrain (VaryingsDefault i) : SV_Target
6666 {
67- i.texcoord = UnityStereoTransformScreenSpaceTex (i.texcoord);
68- float grain = Step3BW (i.texcoord * float2 (128.0 , 128.0 ));
67+ float grain = Step3BW (i.texcoordStereo * float2 (128.0 , 128.0 ));
6968 return float4 (grain.xxx, 1.0 );
7069 }
7170
7271 float4 FragGrainColored (VaryingsDefault i) : SV_Target
7372 {
74- i.texcoord = UnityStereoTransformScreenSpaceTex (i.texcoord);
75- float3 grain = Step3 (i.texcoord * float2 (128.0 , 128.0 ));
73+ float3 grain = Step3 (i.texcoordStereo * float2 (128.0 , 128.0 ));
7674 return float4 (grain, 1.0 );
7775 }
7876
Original file line number Diff line number Diff line change @@ -69,7 +69,7 @@ Shader "Hidden/PostProcessing/Lut2DBaker"
6969 float4 FragLDRFromScratch (VaryingsDefault i) : SV_Target
7070 {
7171 // 2D strip lut
72- float3 colorLinear = GetLutStripValue (UnityStereoTransformScreenSpaceTex (i.texcoord) , _Lut2D_Params);
72+ float3 colorLinear = GetLutStripValue (i.texcoordStereo , _Lut2D_Params);
7373 float3 graded = ColorGradeLDR (colorLinear);
7474 return float4 (graded, 1.0 );
7575 }
You can’t perform that action at this time.
0 commit comments