- Converted EyeAdaptation shaders to output to buffer.
- Updated most PostFX shaders to read from EyeAdaptationBuffer.
- Temporary: Non postfx shaders, plugins, etc still expect a texture so, for compatibility, implemented a CS to copy data from EyeAdaptationBuffer to EyeAdaptationTexture.
#rb Guillaume.Abadie
#preflight 6388d458b36822f1c334e506
[CL 23354265 by tiago costa in ue5-main branch]
- The output should use the same encoding as the input.
- Also set r.Bloom.ApplyLocalExposure to false by default for now.
#rb yuriy.odonnell
#preflight 62ba1ae0176b16bd384eebf4
[CL 20840158 by tiago costa in ue5-main branch]
- Otherwise bloom intensity will not properly match the bright regions of the final image.
- Can be disabled using r.Bloom.ApplyLocalExposure.
- For gaussian bloom, local exposure is applied during the setup pass.
- For FFT bloom, local exposure is applied using an extra pass before convolution.
- Implemented AddApplyLocalExposurePass which apply local exposure to an input texture.
#rb Guillaume.Abadie
#preflight 62b5f2e8bd4bf89e21c78caa
#jira FORT-460700
[CL 20812852 by tiago costa in ue5-main branch]
- Image exposure is locally adjusted by decomposing luminance of the frame into a base layer and a detail layer.
- Base layer contrast can be reduced while preserving detail.
- Support blending with gaussian blurred luminance as proposed in Advances in Real-Time Rendering in Games 2021.
- Controls in PostProcessVolume.
- r.LocalExposure cvar to control whether local exposure is supported.
- Visualization mode in "Show->Visualize->Local Expsoure". Multiple modes controllable using r.LocalExposure.VisualizeDebugMode.
- Bilateral grid generation not yet optimized. Optimization should include increasing depth of grid to match histogram size so that global histogram can be generated from grid.
- Added option to use mirror address mode in PostProcessWeightedSampleSum, since black border adds noticeable vignetting to the blurred luminance.
#preflight 612f65169db3090001ba3eec
#rb Brian.Karis, Guillaume.Abadie, Krzysztof.Narkowicz
#ROBOMERGE-SOURCE: CL 17385317
#ROBOMERGE-BOT: (v865-17346139)
[CL 17387198 by tiago costa in ue5-main branch]