Sketch #13: Detects Segments Facing Camera
Click the sphere and drag it around.
Scroll to zoom in/out.
This sphere is divided into 8 segments and we detect which ones face the camera.
We do this by performing the dot product and checking the sign.
Move around to see it in action.