Esempio n. 1
0
        public void Draw(ShaderEditorGraph graph)
        {
            ImDrawListPtr list = ImGui.GetWindowDrawList();

            list.AddCircle(new Vector2(0.5f, 0.5f), 0.5f, 0, 8, 1.0f);
            list.AddLine(new Vector2(0.0f, 0.0f), new Vector2(10.0f, 10.0f), 1);
        }
Esempio n. 2
0
 public ShaderOutputNode(ShaderEditorGraph graph, ShaderOutputDesc desc) : base(graph)
 {
     this.CanBeDeleted = false;
     Pins.Add(new ShaderNodePinDesc(this, null, ShaderNodePinType.TYPE_FLOAT4, 0, "Diffuse", "The Diffuse component of the shader.", false));
     Pins.Add(new ShaderNodePinDesc(this, null, ShaderNodePinType.TYPE_FLOAT4, 1, "Emissive", "The Emissive component of the shader", false));
     Pins.Add(new ShaderNodePinDesc(this, null, ShaderNodePinType.TYPE_FLOAT, 2, "Roughness", "The Roughness component of the shader.", false));
     Pins.Add(new ShaderNodePinDesc(this, null, ShaderNodePinType.TYPE_FLOAT, 3, "Metalness", "The Metalness component of the shader.", false));
     Pins.Add(new ShaderNodePinDesc(this, null, ShaderNodePinType.TYPE_FLOAT3, 4, "Normal", "The Normal component of the shader.", false));
 }
Esempio n. 3
0
 public ShaderNode_Add(ShaderEditorGraph graph) : base(graph)
 {
 }
Esempio n. 4
0
 public void DestroyNode(ShaderEditorGraph graph)
 {
     graph.RemoveNode(this);
     this.CleanUp();
 }
Esempio n. 5
0
 public ShaderNode(ShaderEditorGraph Graph)
 {
     Pins.Add(new ShaderNodePinDesc(this, null, ShaderNodePinType.TYPE_NULL, 0, "NULL", "NULL", false));
     Pins.Add(new ShaderNodePinDesc(this, null, ShaderNodePinType.TYPE_NULL, 0, "NULL", "NULL", true));
     Graph.AddNode(this);
 }
Esempio n. 6
0
        public void Draw(ShaderEditorGraph graph)
        {
            ImDrawListPtr list = ImGui.GetWindowDrawList();

            list.AddCircle(new Vector2(0.5f, 0.5f), 0.5f, 0);
        }