Ejemplo n.º 1
0
 HSVShiftNode() : base()
 {
     title       = "HSV Shift";
     style.width = 150f;
     AddInputPort <Vector4>();
     AddOutputPort <Vector4>();
     RefreshPorts();
     m_HueSlider        = new SliderWithFloatField(-0.5f, 0.5f, 0);
     m_SaturationSlider = new SliderWithFloatField(0f, 2f, 1f);
     m_ValueSlider      = new SliderWithFloatField(0f, 2f, 1f);
     extensionContainer.Add(UIElementsUtility.CreateLabeledElement("H", m_HueSlider));
     extensionContainer.Add(UIElementsUtility.CreateLabeledElement("S", m_SaturationSlider));
     extensionContainer.Add(UIElementsUtility.CreateLabeledElement("V", m_ValueSlider));
     RefreshExpandedState();
 }
Ejemplo n.º 2
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();
        }