Dynamic light instances
Posted: Mon Dec 02, 2013 11:05 pm
It would be helpful if lights can be instantiated and destroyed dynamically in runtime. For now, I do not have a clear preference how to achieve this, just see some rough ideas:
- Place a Light as part of a Model (and ModelState?). Each instance of a model (model state) would have own instances of lights.
- Light can become a type in expression language, similarly to "model". They can be declared as types of variables and arrays + there would be a function/component to instantiate a light and another one to destroy it.
... you have maybe some better alternative how to specify dynamic lights.
- Place a Light as part of a Model (and ModelState?). Each instance of a model (model state) would have own instances of lights.
- Light can become a type in expression language, similarly to "model". They can be declared as types of variables and arrays + there would be a function/component to instantiate a light and another one to destroy it.
... you have maybe some better alternative how to specify dynamic lights.