Skip to main content

to_wgsl

Function to_wgsl 

Source
pub fn to_wgsl(graph: &MaterialGraph) -> Result<String, String>
Expand description

Generates the shader of a graph (the prelude and the library functions are added by the renderer): a mesh shader for materials and shaders, an effect function for camera effects.