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

Commit 76dd39b

Browse files
committed
Post-merge cleanups
1 parent e43db83 commit 76dd39b

4 files changed

Lines changed: 5 additions & 5 deletions

File tree

PostProcessing/Runtime/Effects/Bloom.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ public override void Render(PostProcessRenderContext context)
105105
pyramidDesc.height = Mathf.FloorToInt(pyramidDesc.height / (2f - rh));
106106

107107
// Determine the iteration count
108-
int s = Mathf.Max((Mathf.FloorToInt(context.singleEyeWidth / (2f - rw))), (Mathf.FloorToInt(context.height / (2f - rh))));
108+
int s = Mathf.Max((Mathf.FloorToInt(context.xrSingleEyeWidth / (2f - rw))), (Mathf.FloorToInt(context.height / (2f - rh))));
109109
float logs = Mathf.Log(s, 2f) + Mathf.Min(settings.diffusion.value, 10f) - 10f;
110110
int logs_i = Mathf.FloorToInt(logs);
111111
int iterations = Mathf.Clamp(logs_i, 1, k_MaxPyramidSize);
@@ -173,7 +173,7 @@ public override void Render(PostProcessRenderContext context)
173173
: settings.dirtTexture.value;
174174

175175
var dirtRatio = (float)dirtTexture.width / (float)dirtTexture.height;
176-
var screenRatio = (float)context.singleEyeWidth / (float)context.height;
176+
var screenRatio = (float)context.xrSingleEyeWidth / (float)context.height;
177177
var dirtTileOffset = new Vector4(1f, 1f, 0f, 0f);
178178

179179
if (dirtRatio > screenRatio)

PostProcessing/Runtime/Effects/DepthOfField.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ public override void Render(PostProcessRenderContext context)
132132
// Material setup
133133
var f = settings.focalLength.value / 1000f;
134134
var s1 = Mathf.Max(settings.focusDistance.value, f);
135-
var aspect = (float)context.singleEyeWidth / (float)context.height; // TODO: this might change if we get rid of singleEyeWidth
135+
var aspect = (float)context.xrSingleEyeWidth / (float)context.height; // TODO: this might change if we get rid of singleEyeWidth
136136
var coeff = f * f / (settings.aperture.value * (s1 - f) * k_FilmHeight * 2);
137137
var maxCoC = CalculateMaxCoCRadius(context.height);
138138

PostProcessing/Runtime/Effects/Dithering.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ internal void Render(PostProcessRenderContext context)
3030

3131
uberSheet.properties.SetTexture(ShaderIDs.DitheringTex, noiseTex);
3232
uberSheet.properties.SetVector(ShaderIDs.Dithering_Coords, new Vector4(
33-
(float)context.singleEyeWidth / (float)noiseTex.width,
33+
(float)context.xrSingleEyeWidth / (float)noiseTex.width,
3434
(float)context.height / (float)noiseTex.height,
3535
rndOffsetX,
3636
rndOffsetY

PostProcessing/Runtime/PostProcessRenderContext.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ public Camera camera
4949
m_sourceDescriptor.height = height;
5050

5151
xrSingleEyeWidth = width;
52-
// TODO: fill in single eye height
52+
xrSingleEyeHeight = height;
5353
}
5454
}
5555
}

0 commit comments

Comments
 (0)