postprocessing
postprocessing copied to clipboard
Implement NormalReconstructionPass
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