# GLSL Movie Scenes - This Isn't a Video. It's One File of Code

**URL:** <https://www.artofsm.art/t/glsl-movie-scenes-this-isnt-a-video-its-one-file-of-code/26446>\
**Category:** Content Creators\
**Tags:** echohive, claude-code, mathematics, coding\
**Created:** [20 October 2026 10:02 UTC](https://www.artofsm.art/t/glsl-movie-scenes-this-isnt-a-video-its-one-file-of-code/26446 "2026-10-20T10:02:51Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![artesia](https://www.artofsm.art/user_avatar/www.artofsm.art/artesia/32/36_2.png) [@artesia](https://www.artofsm.art/u/artesia)\
**Post date:** [20 October 2026 10:02 UTC](https://www.artofsm.art/t/glsl-movie-scenes-this-isnt-a-video-its-one-file-of-code/26446/1 "2026-10-20T10:02:51Z")

</div>

[![](https://www.artofsm.art/uploads/default/original/3X/4/c/4ca552ea321cfd988473adf6859a4b24da47a739.jpeg "GLSL Movie Scenes - This Isn't a Video. It's One File of Code.") ](https://www.youtube.com/watch?v=Q5ZxGYqhmeE)

The video showcases two highly detailed, realistic scenes—a rainy street and a 1920s deep-sea diver—entirely generated from single files of shader code using mathematical formulas for ray tracing, animation, and lighting, all running live in web browsers without 3D models or textures. It highlights the creator’s debugging process, optimization techniques, and the potential of AI-assisted tools to enhance creative coding workflows, inviting viewers to access further resources through Patreon.

---

<div class="post-metadata">

**Author:** ![artesia](https://www.artofsm.art/user_avatar/www.artofsm.art/artesia/32/36_2.png) [@artesia](https://www.artofsm.art/u/artesia)\
**Post date:** [20 October 2026 10:23 UTC](https://www.artofsm.art/t/glsl-movie-scenes-this-isnt-a-video-its-one-file-of-code/26446/3 "2026-10-20T10:23:07Z")

</div>

The video showcases a remarkable rainy movie scene created entirely from a single file of shader code, without using any 3D models, textures, or game engines. The creator, Claude Code, was tasked with building a realistic, looping scene based on a photo, which could also be rotated freely. The scene depicts a man in a long coat walking away into the fog, with detailed animations such as his feet planting on the wet road and his coat swinging naturally. Every element in the scene, from the road and lamps to the car and the man’s coat, is generated through mathematical formulas that calculate distances for each pixel, enabling precise ray tracing and collision detection.

The animation of the man’s walk is computed by fixing each foot on the road while moving the body over it, with the knee position calculated backward from the foot, mimicking realistic human movement. The fog is illuminated by 15 street lamps using a single formula per ray, which creates smooth lighting effects efficiently. Rain is rendered in six layers of streaks that catch the lamp light, and reflections on puddles, the car, and windows are produced by secondary rays tracing real reflections. Debugging the scene was challenging since the code cannot “see” the scene as humans do, so special debug views and browser screenshots were used to identify and fix bugs.

Several bugs were discovered and resolved during development. For example, strange rings on the street were traced to the soft shadow formula, which initially treated each lamp as infinitely far away, causing artifacts. Adjusting the lamp size eliminated these rings. Another bug caused the man to appear bald below his hairline due to a small error in the hairline formula. Other fixes included darkening the fog, improving hair texture, adding contact shadows to the car to prevent it from floating, adjusting the eyes to prevent bulging, and restricting the camera to stay inside the street to avoid black screens.

In a second session, Claude Code created an entirely new scene from its own imagination: a 1920s deep-sea diver walking across the seabed past a sunken wreck. This scene features sand puffing up with each step, bubbles rising from the helmet, and a school of fish drifting overhead. The diver’s walk is heavy and slow, with detailed movements such as the heel peeling off the sand and arms swinging against the legs. The scene is framed cinematically and includes a heat map showing the computational cost of each pixel, highlighting areas where rays stall near scattered stones. After optimizations, this scene runs about 1.7 times faster.

Both scenes run live in ordinary web browsers without any installation, demonstrating the power of shader code and mathematical rendering. The video emphasizes the importance of giving AI agents ways to visualize and debug their work, such as through debug views and screenshots, which helps uncover subtle bugs that might be missed by simply reading code. The creator invites viewers to join their Patreon for access to code files, video lessons, and consulting services to help others integrate AI into their projects, highlighting the growing capabilities of AI models and their potential to enhance creative workflows.
