ShaderRender
A shader and 3D lab in the browser.

Every time a brand project required interactive 3D, the workflow forced a choice: learn GLSL from scratch or hand the concept to a developer and hope it survived the translation. ShaderRender was built as the third option. I designed and engineered the product end-to-end, encompassing the scene model, the editor, the shader system, the animation tools, the AI layer, and the export paths.

One-Scene Architecture
In standard 3D workflows, the model, shader, animation, and web implementation are split across different software. ShaderRender unifies them into a single, live Three.js scene. What is adjusted in the editor is exactly what the browser renders. A scene holds meshes, cameras, lights, paths, and an environment, with every mesh keeping its own geometry, transform, shader stack, and animation state.

The Shader System
Because designers think in visual styles rather than code, the renderer is split into four distinct shader families:
- Stylized: Combines toon lighting, outlines, and pattern treatments.
- Physical: Exposes roughness, metalness, transmission, and realistic material controls.
- Mathematical: Uses time and custom uniforms for procedural motion.
- Screen: Applies post-process effects like ASCII, halftone, CRT, and dither to the final frame.
Layers in ShaderRender are actual render passes, not visual interface tricks. The system renders each pass into its own off-screen frame buffer before compositing them. Every layer maintains its own uniforms, opacity, blend mode, and render order, allowing different objects in the same scene to carry entirely different stacks.

Design & Animate
Design and Animate modes operate on the exact same objects, eliminating the need to rebuild scenes. The timeline adds keyframes, cameras, lights, spline paths, and loop behaviors. Because the shader stack is natively bound to the object, complex shader values can be keyframed just as easily as physical positions.
Under the Hood & AI Generation
The editor is built in React using React Three Fiber and Three.js, with a single Zustand store holding the scene, shaders, animation, and export state. An integrated AI layer sits on top of this architecture: it reads a written direction, targets the correct shader family, and validates the generated code before it touches the scene. Rather than replacing the editor, the AI outputs standard, editable layers that can be continuously refined.