Skip to content
Shapemetry

Model - styles[]

Every method of the styles[] lane. Each step of a styles[] entry returns a style, and the lane's entries are addressed by the identity schema/lanes.ts declares for it.

MethodDescriptionArgTypeDefaultMeaning
styleStyle — 3D-viewport display preset (background / shading / exposure / sun / environment) — styles[] lane only. Referenced by name via a view's viewStyle step.namestring'Style'Style name (string expression; quote literals). Unique among resolved names.
backgroundcolorViewport clear color, hex (e.g. '#1a1a1a').
shadingstring'matcap' | 'shaded' | 'wireframe' | 'realistic'. 'matcap' is self-lit form-reading; 'realistic' is the only mode that materializes emitting entities and settings.environment as real renderer lights.
exposurenumberEV compensation on the auto-exposure meter, realistic only. 1 trusts the meter, 2 is twice as bright.
sunobjectObject literal {azimuth, altitude, lux?, skyLux?, kelvin?} (degrees, Z-up) — realistic only. Omit for no sun.
environmentobjectObject literal {name?, intensity?} — HDRI image (images[] name or URI) — realistic only.
Last updated: 📖 1 min readEdit on GitHub