📄 AmbientLightNode.js
¶
📊 Analysis Summary¶
Metric | Count |
---|---|
🔧 Functions | 1 |
🧱 Classes | 1 |
📦 Imports | 1 |
📚 Table of Contents¶
🛠️ File Location:¶
📂 src/nodes/lighting/AmbientLightNode.js
📦 Imports¶
Name | Source |
---|---|
AnalyticLightNode |
./AnalyticLightNode.js |
Functions¶
AmbientLightNode.setup({ context }: any): void
¶
Parameters:
{ context }
any
Returns: void
Calls:
context.irradiance.addAssign
Classes¶
AmbientLightNode
¶
Class Code
class AmbientLightNode extends AnalyticLightNode {
static get type() {
return 'AmbientLightNode';
}
/**
* Constructs a new ambient light node.
*
* @param {?AmbientLight} [light=null] - The ambient light source.
*/
constructor( light = null ) {
super( light );
}
setup( { context } ) {
context.irradiance.addAssign( this.colorNode );
}
}