pmndrs / pmndrs/postprocessing
Implement NormalReconstructionPass
Open
Nobody has claimed this yet.
- Dominant language
- JavaScript
- Stars
- 2.9k
- Forks
- 251
- Avg merge
- 17m
- Merged PRs (30d)
- 1
Description
Description
Related: #722
Implement a NormalReconstructionPass that calculates accurate normals based on depth.
References:
- https://wickedengine.net/2019/09/improved-normal-reconstruction-from-depth/
- https://atyuwen.github.io/posts/normal-reconstruction/
- https://www.shadertoy.com/view/fsVczR
Tasks
- Create
NormalReconstructionMaterial. - Create
NormalReconstructionPass. - Add
normal-reconstructiondemo underutilities. - Add unit test.
Implementation Details
- Implement material and use it in a new dedicated pass for normal reconstruction
- The pass should provide a
texturegetter for convenience - Can use
DepthDownsamplingPassas reference - See #722 for reference
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reading the DepthDownsamplingPass implementation, then review the linked normal-reconstruction references to understand the depth-based calculation. Create the material and dedicated pass, expose its texture getter, add the normal-reconstruction demo under utilities, and add a unit test covering the pass.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript, three.js
- Domain
- computer-graphics
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 38/100