Home▸Geometry▸3D Shape 2D: Metalness & Roughness Shading Preview

3D Shape 2D: Metalness & Roughness Shading Preview

2D companion to the 3D Shape material viewer: pick a primitive silhouette, tune metalness and roughness, and watch a fake-3D turntable rotation and specular highlight recompute from those parameters in real time on a flat canvas.

Geometry2DModerate60 FPS⇄ 3D version
2d-3d-shape ↗ Open standalone

This is the 2D companion to the 3D Shape material viewer. Instead of rasterizing an actual rotated mesh through a WebGL PBR pipeline, it fakes the same visual language directly on a flat canvas: a horizontal squash by |cos(θ)| stands in for turntable rotation, a Lambertian cosine term stands in for diffuse shading, and a radial gradient — sized by roughness and tinted between white and the base color by metalness — stands in for the specular highlight a physically-based material would produce. Picking a silhouette, dragging metalness or roughness, or toggling wireframe recomputes every one of those terms live, so the same six primitives and the same two material sliders as the 3D scene drive a genuinely different, purely 2D rendering technique.

⚙ Under the hood

2D companion to the 3D Shape material viewer: pick a primitive silhouette, tune metalness and roughness, and watch a fake-3D turntable rotation and specular highlight recompute from those parameters in real time on a flat canvas.

Material ShadingMetalnessRoughnessTurntable Rotation2D Canvas

2D · HTML5 Canvas 2D · 60 FPS target · runs fully client-side, no install

What did you find?

Add reproduction steps (optional)