@@ -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 ;
0 commit comments