The stellar renderer builds each star as a transparent 512-pixel WebGL texture. Spectral classes supply physically recognizable palettes, while deterministic object IDs keep same-class stars from sharing identical surfaces. Compact remnants always use the shader's resolved treatment; their centered map texture and closer sidebar portrait differ only in camera framing. The black-hole mode renders an event-horizon shadow inside a lensed, doppler-brightened accretion disc, and its axis control sets the disc's position angle. The high-detail preview control applies to ordinary stars, changing their surface and optical treatment without changing scale or position. The generated system JSON stores the toy's visible settings as an optional material override.
Preparing WebGL renderer…
Fragment shader source
Loading production shader source…