Пример #1
0
 RotateNode() : base()
 {
     title = "Rotate";
     AddInputPort <Vector4>();
     AddOutputPort <Vector4>();
     RefreshPorts();
     m_EnumField = new EnumPopupField <RotationType>(RotationType.Right90);
     extensionContainer.Add(m_EnumField);
     RefreshExpandedState();
 }
Пример #2
0
 BumpMapNode() : base()
 {
     title = "Bump Map";
     AddInputPort <Vector4>();
     AddOutputPort <Vector4>();
     RefreshPorts();
     m_EnumField = new EnumPopupField <BumpMapType>(BumpMapType.Normal);
     extensionContainer.Add(m_EnumField);
     RefreshExpandedState();
 }
Пример #3
0
        MathNode() : base()
        {
            title = "Math";
            var port = AddInputPort <float>("A");

            port.name = "A";
            port      = AddInputPort <float>("B");
            port.name = "B";
            AddOutputPort <float>("Out");
            RefreshPorts();
            m_EnumField = new EnumPopupField <CalculateMode>(CalculateMode.Add);
            extensionContainer.Add(m_EnumField);
            RefreshExpandedState();
        }
Пример #4
0
        BlendNode() : base()
        {
            title = "Blend";
            var port = AddInputPort <Vector4>("A");

            port.name = "A";
            port      = AddInputPort <Vector4>("B");
            port.name = "B";
            AddOutputPort <Vector4>("Out");
            RefreshPorts();
            m_EnumField = new EnumPopupField <BlendMode>(BlendMode.Normal);
            m_Slider    = new SliderWithFloatField(0f, 1f, 1f);
            extensionContainer.Add(m_EnumField);
            extensionContainer.Add(m_Slider);
            RefreshExpandedState();
        }