示例#1
0
        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();
        }
示例#2
0
        /// <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();
        }