示例#1
0
 public UIColorModifierWindow(EffectColorModifier mod, bool show) : base((EffectModifier)mod, show)
 {
     colorMod   = mod;
     colorName  = colorMod.colorName;
     colorNames = MaterialUtils.FindValidShaderProperties(colorMod.GetMaterial(), WaterfallMaterialPropertyType.Color).ToArray();
     GenerateCurveThumbs(mod);
 }
 public UIColorModifierWindow(EffectColorModifier mod, bool show) : base((EffectModifier)mod, show)
 {
     colorMod       = mod;
     colorName      = colorMod.colorName;
     colorNames     = MaterialUtils.FindValidShaderProperties(colorMod.GetMaterial(), WaterfallMaterialPropertyType.Color).ToArray();
     colorIndex     = colorNames.ToList().FindIndex(x => x == colorMod.colorName);
     rCurveFunction = new CurveUpdateFunction(UpdateRedCurve);
     gCurveFunction = new CurveUpdateFunction(UpdateGreenCurve);
     bCurveFunction = new CurveUpdateFunction(UpdateBlueCurve);
     aCurveFunction = new CurveUpdateFunction(UpdateAlphaCurve);
     GenerateCurveThumbs(mod);
 }