Skip to content
This repository was archived by the owner on Nov 30, 2020. It is now read-only.

Commit 7df0d75

Browse files
committed
Use texcoordStereo instead of UnityStereoTransformScreenSpaceTex
Couple places I had to port. Incidentally, in the bakers, boo!
1 parent 4969e03 commit 7df0d75

2 files changed

Lines changed: 3 additions & 5 deletions

File tree

PostProcessing/Shaders/Builtins/GrainBaker.shader

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff 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

PostProcessing/Shaders/Builtins/Lut2DBaker.shader

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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
}

0 commit comments

Comments
 (0)