Buckets:
| import { Light } from './Light.js'; | |
| /** | |
| * This light globally illuminates all objects in the scene equally. | |
| * | |
| * It cannot be used to cast shadows as it does not have a direction. | |
| * | |
| * ```js | |
| * const light = new THREE.AmbientLight( 0x404040 ); // soft white light | |
| * scene.add( light ); | |
| * ``` | |
| * | |
| * @augments Light | |
| */ | |
| class AmbientLight extends Light { | |
| /** | |
| * Constructs a new ambient light. | |
| * | |
| * @param {(number|Color|string)} [color=0xffffff] - The light's color. | |
| * @param {number} [intensity=1] - The light's strength/intensity. | |
| */ | |
| constructor( color, intensity ) { | |
| super( color, intensity ); | |
| /** | |
| * This flag can be used for type testing. | |
| * | |
| * @type {boolean} | |
| * @readonly | |
| * @default true | |
| */ | |
| this.isAmbientLight = true; | |
| this.type = 'AmbientLight'; | |
| } | |
| } | |
| export { AmbientLight }; | |
Xet Storage Details
- Size:
- 828 Bytes
- Xet hash:
- 4f479ab5fcfedfb7d4fab21c1989b77100b2696af1ddf4e57b447969364986bc
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.