Open
Description
Description
Implement an OutlineEffect
.
This effect should focus only on rendering object feature edges for the whole scene. Selective object highlighting will be implemented in a different way.
References:
- https://roystan.net/articles/outline-shader/
- https://gamedev.stackexchange.com/questions/68401/how-can-i-draw-outlines-around-3d-models
- https://docs.blender.org/manual/en/2.79/render/blender_render/post_processing/edges.html
- https://github.com/gkjohnson/threejs-sandbox/tree/master/sobel-outline
Tasks
- Use
EdgeDetectionMaterial
or createSobelMaterial
. - Create
OutlineEffect
. - Create
outline
demo. - Add unit test.
Implementation Details
- Use G-Buffer components (depth, normals).
- Edge threshold, color and thickness should be configurable.
Metadata
Metadata
Assignees
Labels
No labels