public MixNode(string name) : base(ShaderNodeType.Mix, name) { inputs = new MixInputs(this); outputs = new MixOutputs(this); BlendType = "Mix"; ins.Fac.Value = 0.5f; ins.Color1.Value = new float4(); ins.Color2.Value = new float4(); }
/// <summary> /// Create new MixNode with blend type Mix and name. /// </summary> /// <param name="name"></param> public MixNode(string name) : base(ShaderNodeType.Mix, name) { inputs = new MixInputs(this); outputs = new MixOutputs(this); BlendType = BlendTypes.Mix; UseClamp = false; ins.Fac.Value = 0.5f; ins.Color1.Value = new float4(); ins.Color2.Value = new float4(); }