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

Commit c0ecfac

Browse files
committed
Quick cleanups
1 parent 7d00cbb commit c0ecfac

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

PostProcessing/Runtime/Effects/AutoExposure.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -97,10 +97,10 @@ public override void Render(PostProcessRenderContext context)
9797
settings.maxLuminance.value = Mathf.Max(minLum, maxLum);
9898

9999
// Compute auto exposure
100-
sheet.properties.SetBuffer(ShaderIDs.HistogramBuffer, context.logHistogram.data); // bind stereo buffer
100+
sheet.properties.SetBuffer(ShaderIDs.HistogramBuffer, context.logHistogram.data);
101101
sheet.properties.SetVector(ShaderIDs.Params, new Vector4(lowPercent * 0.01f, highPercent * 0.01f, RuntimeUtilities.Exp2(settings.minLuminance.value), RuntimeUtilities.Exp2(settings.maxLuminance.value)));
102102
sheet.properties.SetVector(ShaderIDs.Speed, new Vector2(settings.speedDown.value, settings.speedUp.value));
103-
sheet.properties.SetVector(ShaderIDs.ScaleOffsetRes, context.logHistogram.GetHistogramScaleOffsetRes(context)); // get per-eye adjusted values
103+
sheet.properties.SetVector(ShaderIDs.ScaleOffsetRes, context.logHistogram.GetHistogramScaleOffsetRes(context));
104104
sheet.properties.SetFloat(ShaderIDs.ExposureCompensation, settings.keyValue.value);
105105

106106
if (m_ResetHistory || !Application.isPlaying)
@@ -110,7 +110,7 @@ public override void Render(PostProcessRenderContext context)
110110
m_CurrentAutoExposure = m_AutoExposurePool[context.xrActiveEye][0];
111111
cmd.BlitFullscreenTriangle(BuiltinRenderTextureType.None, m_CurrentAutoExposure, sheet, (int)EyeAdaptation.Fixed);
112112

113-
//// Copy current exposure to the other pingpong target to avoid adapting from black
113+
// Copy current exposure to the other pingpong target to avoid adapting from black
114114
RuntimeUtilities.CopyTexture(cmd, m_AutoExposurePool[context.xrActiveEye][0], m_AutoExposurePool[context.xrActiveEye][1]);
115115

116116
m_ResetHistory = false;

PostProcessing/Runtime/Effects/ScalableAO.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ void DoLazyInitialization(PostProcessRenderContext context)
5555

5656
reset = true;
5757
}
58-
else if (m_Result.width != context.width || m_Result.height != context.height) // TODO: convert this to RT width when I implement it
58+
else if (m_Result.width != context.width || m_Result.height != context.height)
5959
{
6060
// Release and reallocate
6161
m_Result.Release();

0 commit comments

Comments
 (0)