postprocessing icon indicating copy to clipboard operation
postprocessing copied to clipboard

Implement SSREffect

Open vanruesc opened this issue 1 year ago • 0 comments

Description

Implement an SSREffect.

Related: #190, #348

References:

  • https://threejs.org/examples/?q=ssr#webgl_postprocessing_ssr
  • https://github.com/Domenicobrz/WebGL2-Screen-space-reflections
  • https://lettier.github.io/3d-game-shaders-for-beginners/screen-space-reflection.html
  • https://github.com/gkjohnson/threejs-sandbox/tree/master/screenSpaceReflectionsPass
  • https://github.com/0beqz/realism-effects

Tasks

  • [ ] Create SSREffect.
  • [ ] Create ssr demo.
  • [ ] Add unit test.

Implementation Details

  • Use G-Buffer components (depth, normals, ORM).
  • Calculate world position based on depth.
    • Use <pp_depth_utils_pars_fragment> shader chunk.

vanruesc avatar Feb 12 '24 00:02 vanruesc