Skip to main content

Crate reflow_shader

Crate reflow_shader 

Source
Expand description

Reflow Shader Graph — node-based material system with WGSL codegen.

Follows the SDF IR + codegen pattern:

  1. DAG actors produce ShaderNode IR trees
  2. codegen::compile() walks the tree and emits WGSL shaders
  3. Scene render creates GPU pipelines from compiled materials

Re-exports§

pub use codegen::compile;
pub use codegen::compile_sdf_shade;
pub use ir::CompiledMaterial;
pub use ir::MathOpType;
pub use ir::MixMode;
pub use ir::ShaderNode;

Modules§

codegen
WGSL code generation from ShaderNode IR.
ir
Shader IR — intermediate representation for the node-based material graph.