예제 #1
0
 private void floatTrackbarControlIOR_SliderDragStop(UIUtility.FloatTrackbarControl _Sender, float _fStartValue)
 {
     if (_Sender.Value < 10.0f)
     {
         _Sender.VisibleRangeMax = 10.0f;                        // Restore visibility range
     }
 }
예제 #2
0
        private void floatTrackbarControl1_ValueChanged(UIUtility.FloatTrackbarControl _Sender, float _fFormerValue)
        {
            outputPanelDiffuseFresnelReflectance.MaxIOR = floatTrackbarControlIOR.VisibleRangeMax;              // So we match the visible range

            if (!floatTrackbarControlIOR.Enabled)
            {
                return;                 // Changed externally from specular tint modification, don't change panels' values!
            }
            outputPanelFresnelGraph.IOR_red   = _Sender.Value;
            outputPanelFresnelGraph.IOR_green = _Sender.Value;
            outputPanelFresnelGraph.IOR_blue  = _Sender.Value;

            outputPanelDiffuseFresnelReflectance.IOR = _Sender.Value;

            panelSpecularTintNormal.BackColor = IOR_to_Color(_Sender.Value, _Sender.Value, _Sender.Value);
        }
예제 #3
0
 private void floatTrackbarControlOffset_ValueChanged(UIUtility.FloatTrackbarControl _Sender, float _fFormerValue)
 {
     RebuildNoise();
 }
예제 #4
0
 private void floatTrackbarControlWeightExponent_ValueChanged(UIUtility.FloatTrackbarControl _Sender, float _fFormerValue)
 {
     BuildRoom();
 }
예제 #5
0
 private void floatTrackbarControl1_ValueChanged(UIUtility.FloatTrackbarControl _Sender, float _fFormerValue)
 {
     panelOutput.UpdateBitmap();
 }
예제 #6
0
 private void floatTrackbarControlNormalized_sRGB_ValueChanged(UIUtility.FloatTrackbarControl _Sender, float _fFormerValue)
 {
     m_lastChangeIsInteger = false;
 }
예제 #7
0
 private void floatTrackbarControlPeakFactor_ValueChanged(UIUtility.FloatTrackbarControl _Sender, float _fFormerValue)
 {
     outputPanelDiffuseFresnelReflectance.PeakFactor = floatTrackbarControlPeakFactor.Value;
 }
예제 #8
0
 private void floatTrackbarControlRoughness_ValueChanged(UIUtility.FloatTrackbarControl _Sender, float _fFormerValue)
 {
     outputPanelDiffuseFresnelReflectance.Roughness = floatTrackbarControlRoughness.Value;
 }
예제 #9
0
 private void floatTrackbarControlVerticalScale_ValueChanged(UIUtility.FloatTrackbarControl _Sender, float _fFormerValue)
 {
     outputPanelDiffuseFresnelReflectance.VerticalScale = floatTrackbarControlVerticalScale.Value;
 }