PHP 7.4.33
Preview: AmbientLight.js Size: 828 B
/var/www/uibuilder.cmshelp.dk/httpdocs/node_modules/three/src/lights/AmbientLight.js
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 };

Directory Contents

Dirs: 1 × Files: 12
Name Size Perms Modified Actions
webgpu DIR
- drwxr-xr-x 2025-03-28 11:04:38
Edit Download
828 B lrw-r--r-- 2025-03-28 11:04:37
Edit Download
2.59 KB lrw-r--r-- 2025-03-28 11:04:38
Edit Download
609 B lrw-r--r-- 2025-03-28 11:04:38
Edit Download
1.35 KB lrw-r--r-- 2025-03-28 11:04:38
Edit Download
1.94 KB lrw-r--r-- 2025-03-28 11:04:38
Edit Download
2.24 KB lrw-r--r-- 2025-03-28 11:04:38
Edit Download
7.23 KB lrw-r--r-- 2025-03-28 11:04:38
Edit Download
2.76 KB lrw-r--r-- 2025-03-28 11:04:39
Edit Download
2.99 KB lrw-r--r-- 2025-03-28 11:04:39
Edit Download
2.55 KB lrw-r--r-- 2025-03-28 11:04:39
Edit Download
4.46 KB lrw-r--r-- 2025-03-28 11:04:39
Edit Download
1.34 KB lrw-r--r-- 2025-03-28 11:04:39
Edit Download
If ZipArchive is unavailable, a .tar will be created (no compression).