Skip to content

Fix: [$100 Bounty] Stochastic Screen-Space Reflections - #3318

Open
Nexussyn wants to merge 1 commit into
armory3d:mainfrom
Nexussyn:bounty-fix/issue-2611-1782105656448
Open

Fix: [$100 Bounty] Stochastic Screen-Space Reflections#3318
Nexussyn wants to merge 1 commit into
armory3d:mainfrom
Nexussyn:bounty-fix/issue-2611-1782105656448

Conversation

@Nexussyn

Copy link
Copy Markdown

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

  • Added a new shader function stochasticSSR to ssr.glsl that implements the SSSR effect using a stochastic sampling approach.
  • Modified the postprocess.glsl shader to use the new stochasticSSR function when the u_UseStochasticSSR uniform is enabled.
  • Added a new uniform u_SSRQuality to control the quality of the SSSR effect.
  • Updated the postprocess.hx and postprocess.hxml files 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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Stochastic Screen-Space Reflections

1 participant