Esempio n. 1
0
 public UIFloatModifierWindow(EffectFloatModifier mod, bool show) : base((EffectModifier)mod, show)
 {
     floatMod   = mod;
     floatName  = floatMod.floatName;
     floatNames = MaterialUtils.FindValidShaderProperties(floatMod.GetMaterial(), WaterfallMaterialPropertyType.Float).ToArray();
     GenerateCurveThumbs(mod);
 }
Esempio n. 2
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);
 }
Esempio n. 3
0
 public UIFloatModifierWindow(EffectFloatModifier mod, bool show) : base((EffectModifier)mod, show)
 {
     floatMod           = mod;
     floatNames         = MaterialUtils.FindValidShaderProperties(floatMod.GetMaterial(), WaterfallMaterialPropertyType.Float).ToArray();
     floatIndex         = floatNames.ToList().FindIndex(x => x == floatMod.floatName);
     floatCurveFunction = new CurveUpdateFunction(UpdateFloatCurve);
     GenerateCurveThumbs(mod);
 }
        public UIColorFromLightModifierWindow(EffectColorFromLightModifier mod, bool show) : base((EffectModifier)mod, show)
        {
            colorMod   = mod;
            colorNames = MaterialUtils.FindValidShaderProperties(colorMod.GetMaterial(), WaterfallMaterialPropertyType.Color).ToArray();
            colorIndex = colorNames.ToList().FindIndex(x => x == colorMod.colorName);

            lightNames = colorMod.parentEffect.parentModule.GetComponentsInChildren <Light>().Select(x => x.transform.name).ToArray();
            lightIndex = lightNames.ToList().FindIndex(x => x == colorMod.lightTransformName);
        }
Esempio n. 5
0
 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);
 }