XX post
Building a WebGL2 Photon Tracer with GLM-5.4
The author used the GLM-5.4 model to write two WebGL2 scenes from scratch, totaling 2,372 lines of shader and math code.
Implemented via OpenCode without external libraries or assets, the project includes a birefringent crystal photon tracer and an anamorphic candle renderer. The author documented the process, noting the agent steps and reasoning tokens required to generate the functional renderers.
Try this prompt
Try the approach in this post once on a small task: Implemented via OpenCode without external libraries or assets, the project includes a birefringent crystal photon tracer… X post · https://x.com/superalesha/status/2124930242972156027
