-
Notifications
You must be signed in to change notification settings - Fork 170
Expand file tree
/
Copy pathShaderOutputNodeViewModel.cs
More file actions
35 lines (31 loc) · 1011 Bytes
/
ShaderOutputNodeViewModel.cs
File metadata and controls
35 lines (31 loc) · 1011 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using DynamicData;
using ExampleShaderEditorApp.Model;
using NodeNetwork;
using NodeNetwork.Toolkit.ValueNode;
using NodeNetwork.ViewModels;
using NodeNetwork.Views;
using ReactiveUI;
namespace ExampleShaderEditorApp.ViewModels.Nodes
{
public class ShaderOutputNodeViewModel : ShaderNodeViewModel
{
static ShaderOutputNodeViewModel()
{
Splat.Locator.CurrentMutable.Register(() => new NodeView(), typeof(IViewFor<ShaderOutputNodeViewModel>));
}
public ShaderNodeInputViewModel ColorInput { get; } = new ShaderNodeInputViewModel(typeof(Vec3));
public ShaderOutputNodeViewModel()
{
this.Name = "Shader Output";
this.Category = NodeCategory.Misc;
this.CanBeRemovedByUser = false;
ColorInput.Name = "Color";
this.EditableInputs().Add(ColorInput);
}
}
}