Fix: [$100 Bounty] Stochastic Screen-Space Reflections - #3318
Open
Nexussyn wants to merge 1 commit into
Open
Conversation
…reen-Space Reflections
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #2611
Stochastic Screen-Space Reflections Implementation
This pull request implements Stochastic Screen-Space Reflections (SSSR) in the Armory3D engine, providing a high-quality visual effect with an optional setting in the SSR section.
Changes
stochasticSSRtossr.glslthat implements the SSSR effect using a stochastic sampling approach.postprocess.glslshader to use the newstochasticSSRfunction when theu_UseStochasticSSRuniform is enabled.u_SSRQualityto control the quality of the SSSR effect.postprocess.hxandpostprocess.hxmlfiles to include a new checkbox and slider to control the SSSR effect.Inspiration
The implementation is inspired by the Blender Eevee SSR and the FidelityFX SSSR, with a focus on visual quality rather than performance.
Example Use Case
To use the SSSR effect, simply enable the "Use Stochastic SSR" checkbox in the post-process settings and adjust the "SSR Quality" slider to control the quality of the effect.
Note: This implementation is not optimized for performance and may have a significant impact on frame rate. Further optimization and refinement may be necessary for production use.