pub fn shade(base: V3, n: V3, to_eye: V3) -> V3Expand description
The lighting of Eagle’s viewer: a grey ambient light and a grey
directional light shining from the camera, each at 0x88 (0.533), with a
faint highlight. Both sides of a face are lit. n is the unit normal,
to_eye the unit direction from the surface to the camera, base the
surface colour; the result is a display colour in 0..1. The WGSL shader
in the app computes the same thing.