Ejemplo n.º 1
0
 public static GenerationResults GetUberPreviewShader(this AbstractMaterialGraph graph)
 {
     return(graph.GetShader(null, GenerationMode.Preview, "hidden/preview"));
 }
Ejemplo n.º 2
0
 public static GenerationResults GetPreviewShader(this AbstractMaterialGraph graph, AbstractMaterialNode node)
 {
     return(graph.GetShader(node, GenerationMode.Preview, String.Format("hidden/preview/{0}", node.GetVariableNameForNode())));
 }