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.