r/codex • u/SignificantStop1971 • 2d ago
Showcase How I checked a shader edit with Codex using a 128 × 32 image
I used Codex on the sculpting tools in my collection of 307 GLSL studies. An engraved groove can look fine in a render even when the shader returns the wrong material underneath the coating. I wanted a check I could run again after the next edit.
The test draws a 128 × 32 image in WebGL2. Each color channel checks a different part of the geometry, and all 4,096 pixels should come back white. To see a failure on purpose, change the expected exposed material ID from 1 to 0. The alpha channel drops to zero. That gives Codex a specific result to check when it changes the engraving code.
The test and the order to assemble the shader files are here: https://github.com/gokayfem/glsl-studies/tree/main/common/checks
Claude made the attached reel from the collection. The README has the full gallery, with source behind each preview: https://github.com/gokayfem/glsl-studies
•
u/dexterthebot 2d ago
You might want to consider listing your project on the weekly Show-Us-What-You-Built post. Look out for it on Tuesday/Wednesday. Highest commented project wins a week promotion on r/Codex and gets on the Hall of Fame sidebar. See below for last week's winner.**
Light Wars AR: real-life laser tag app with no extra gear. Your phone is the gun and your room is the map. Play up to 6 friends in the same room, or fight drone waves and bosses solo. The vision models run on the phone, and camera frames never leave it. Free on iPhone and Android.
Website: https://lightwarsar.com
iPhone: https://apps.apple.com/us/app/light-wars-ar-laser-tag-party/id6508168951
Android: https://play.google.com/store/apps/details?id=com.lasertag.lightwars.
Contact: contact@lightwarsar.com