← All projects
Project record1 mention
Originally shared on Hacker News

ShaderFrog

This tool transforms shader programs into modularized code packages by rewriting their source code and AST, and enables arbitrary shader composition by injecting the output of one module into another, such as Photoshop-style stacking of shaders as layers.

Last shared
01 / Source history

Shared over time

Each entry reflects what was shared on that date. Details may have changed since then.

  1. ShaderFrog

    This tool transforms shader programs into modularized code packages by rewriting their source code and AST, and enables arbitrary shader composition by injecting the output of one module into another, such as Photoshop-style stacking of shaders as layers.

    Posted by @andrewray · Original source ↗

    Source text · @andrewray · · Source ↗

    Taking shader programs (they have a main() functions), hacking up their source code / AST to turn the into modularized code packages, and then enabling composition of shaders by injecting the output of one module into another (essentially calling the main function of one shader in another). This enables arbitrary shader composition.