7 namespace droid.Runtime.Prototyping.Configurables.Experimental {
11 [AddComponentMenu(ConfigurableComponentMenuPath._ComponentMenuPath
13 + ConfigurableComponentMenuPath._Postfix)]
14 [RequireComponent(typeof(Light))]
19 string _shadow_strength;
21 string _indirect_multiplier;
28 _decimal_granularity = 2,
29 _Min_Values = Vector3.one * 0.7f,
30 _Max_Values = Vector3.one * 1f
39 this._shadow_strength = this.Identifier +
"ShadowStrength";
40 this._color_r = this.Identifier +
"ColorR";
41 this._color_g = this.Identifier +
"ColorG";
42 this._color_b = this.Identifier +
"ColorB";
43 this._intensity = this.Identifier +
"Intensity";
44 this._indirect_multiplier = this.Identifier +
"IndirectMultiplier";
46 this._light = this.GetComponent<Light>();
53 this.ParentEnvironment =
54 NeodroidUtilities.RegisterComponent(this.ParentEnvironment,
56 this._shadow_strength);
57 this.ParentEnvironment =
58 NeodroidUtilities.RegisterComponent(this.ParentEnvironment, (
Configurable)
this, this._color_r);
59 this.ParentEnvironment =
60 NeodroidUtilities.RegisterComponent(this.ParentEnvironment, (
Configurable)
this, this._color_b);
61 this.ParentEnvironment =
62 NeodroidUtilities.RegisterComponent(this.ParentEnvironment, (
Configurable)
this, this._color_g);
63 this.ParentEnvironment =
64 NeodroidUtilities.RegisterComponent(this.ParentEnvironment, (
Configurable)
this, this._intensity);
65 this.ParentEnvironment =
66 NeodroidUtilities.RegisterComponent(this.ParentEnvironment,
68 this._indirect_multiplier);
75 if (this.ParentEnvironment == null) {
79 this.ParentEnvironment.UnRegister(
this, this._shadow_strength);
80 this.ParentEnvironment.UnRegister(
this, this._color_r);
81 this.ParentEnvironment.UnRegister(
this, this._color_g);
82 this.ParentEnvironment.UnRegister(
this, this._color_b);
83 this.ParentEnvironment.UnRegister(
this, this._intensity);
84 this.ParentEnvironment.UnRegister(
this, this._indirect_multiplier);
87 public override ISpace ConfigurableValueSpace {
get; }
95 DebugPrinting.ApplyPrint(this.Debugging, configuration, this.Identifier);
102 var c = this._light.color;
104 this._light.color = c;
106 var c = this._light.color;
108 this._light.color = c;
110 var c = this._light.color;
112 this._light.color = c;
125 var o = this._int_ind_sha_space.
Sample();
126 var v = this._color_space.
Sample();
override void ApplyConfiguration(IConfigurableConfiguration configuration)
override void UnRegisterComponent()
override void RegisterComponent()
override Configuration [] SampleConfigurations()
static Space3 TwentyEighty