All examples · Meshes and 3D · As Markdown, for AIs

Reflection

What this example shows

Plastic, ceramic and chrome under the same light. A material's reflection lays a picture of its surroundings over it, read round from the way each pixel faces, the way the pre-rendered graphics of the era made a model look polished. front is how much it reflects where it faces the camera and edge where it turns away, so plastic shows its surroundings only at its rim and chrome everywhere; metal tints what it reflects with its own colour.

The surroundings here are studioEnvironment, a bright sky above and a warm floor below, drawn in code. Space turns the reflections on and off.

Starting
Starting
—