Skip to content
CHRM-MIDMidnight Editorial
AtmosphereSartorial Silence
Accent
Radius
Shadow
Surface
LexiconLab
001

lib · optical-engine

Optical Engine

One shared WebGL2 context serving every optical instrument on the page, with an intersection-gated render loop, a frame-budget ladder, and permanent CSS fallback on context loss.

Install

Source

  • components/optics/types.ts
  • components/optics/glUtils.ts
  • components/optics/opticalEngine.ts
  • components/optics/useOpticalSurface.ts
  • lib/shaderTokens.ts
  • lib/opticalPreference.ts
  • lib/materialOptics.ts

Registry item: /r/optical-engine.json

WorkbenchTune this instrument in the Laboratory →