Back to AI game news
AI game news

AnyVFX rebuilds short GIF effects as a single GLSL shader

By GameSlash

Gökay Gökay shares an experimental AI-assisted workflow for turning short VFX references into procedural WebGL2 shader scenes.

Four AnyVFX examples compare AI-generated reference effects above with shader reconstructions below
Image © Gökay Gökay / AnyVFX — AI-generated reference clips above, shader reconstructions below; example media released under the MIT license.

Gökay Gökay has shared AnyVFX, an experimental open-source workflow that uses an AI coding agent to rebuild a short VFX GIF as a single GLSL fragment shader. In his demonstration, Claude worked from a 12-frame clip; the resulting shader draws the scene and effect without textures or extra buffers.

From GIF frames to a shader

According to the project repository, the agent measures the reference frames, identifies landmarks to reconstruct the static scene, and uses per-frame measurements to animate the effect. The output is a single WebGL2 shader that can be pasted into Shadertoy; it can render motion between the original GIF frames.

The repository includes four examples: an energy beam over a salt flat, a vortex, forest water bursts and a glowing waveform. Each includes a side-by-side comparison and error measurements, so readers can see where the shader differs from the reference.

A prototype that still needs a human eye

The author describes the results as approximations: layout, color and timing can resemble the references, but painted textures do not match exactly. The documented experiments use square 12-frame clips and were rendered on Apple silicon Macs; other shapes and rendering environments remain untested.

The workflow calls for human feedback through multiple revisions. The author says the four reference clips were AI-generated before being reconstructed as shaders. The project, examples and usage instructions are available on GitHub under the MIT license.

View source