Buckets:
| import AnalyticLightNode from './AnalyticLightNode.js'; | |
| import { lightTargetDirection } from '../accessors/Lights.js'; | |
| /** | |
| * Module for representing directional lights as nodes. | |
| * | |
| * @augments AnalyticLightNode | |
| */ | |
| class DirectionalLightNode extends AnalyticLightNode { | |
| static get type() { | |
| return 'DirectionalLightNode'; | |
| } | |
| /** | |
| * Constructs a new directional light node. | |
| * | |
| * @param {?DirectionalLight} [light=null] - The directional light source. | |
| */ | |
| constructor( light = null ) { | |
| super( light ); | |
| } | |
| setupDirect() { | |
| const lightColor = this.colorNode; | |
| const lightDirection = lightTargetDirection( this.light ); | |
| return { lightDirection, lightColor }; | |
| } | |
| } | |
| export default DirectionalLightNode; | |
Xet Storage Details
- Size:
- 727 Bytes
- Xet hash:
- 290d2b130e135a6c6d9950f03322c4ab365b492cc22cba142077ccb4ba07492b
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.