A game dev tweet me this after seeing edge node 1.2.4.
There are many ways to do realtime edge detection.
The most primitive is using Zdepth & Normal.
In the new edge node, I turned Zdepth into color, normal also into color.
What I’m thinking is to create edge detection that is color independent.
Or color that clipped over the range of 0…1
The edge type that is possible with it are:
- Silhouette (normal & Zdepth)
- Contour (object ID)
- Intersection (normal)
- Edge mark (vertex shader)
To tell you the truth, these edge types are the most used.
These inputs can be useful for edge detection:
- Object ID
- Material ID
- Normal (view/world)
- Vertex position
- Bounding box size