r3-legacy/src/r3-d3-light-ambient.js

40 lines
735 B
JavaScript
Raw Normal View History

2018-04-09 09:35:04 +02:00
/**
* R3.D3.Light.Ambient
2019-10-06 21:11:18 +02:00
* @param apiComponent
2018-04-09 09:35:04 +02:00
* @constructor
*/
R3.D3.Light.Ambient = function(
2019-10-06 21:11:18 +02:00
apiComponent
2018-04-09 09:35:04 +02:00
) {
2019-10-06 21:11:18 +02:00
__RUNTIME_COMPONENT__;
2018-04-09 09:35:04 +02:00
R3.D3.Light.call(
this,
2019-10-06 21:11:18 +02:00
true
)
2018-04-09 09:35:04 +02:00
};
R3.D3.Light.Ambient.prototype = Object.create(R3.D3.Light.prototype);
R3.D3.Light.Ambient.prototype.constructor = R3.D3.Light.Ambient;
/**
* Creates a light instance
* @returns {*}
*/
R3.D3.Light.Ambient.prototype.createInstance = function() {
2019-10-06 21:11:18 +02:00
this.instance = this.graphics.LightAmbient(this);
__CREATE_INSTANCE__;
2018-04-09 09:35:04 +02:00
};
/**
* Updates the instance with the current state
*/
R3.D3.Light.Ambient.prototype.updateInstance = function(property) {
R3.D3.Light.prototype.updateInstance.call(this, property);
};