AmbientLightElement
Represents ambient light which globally illuminates the scene evenly without direction. Provides base illumination without casting shadows.
Creating a new Ambient Light:
const ambientLight = new AmbientLightElement();
ambientLight.color = '#ffffff';
ambientLight.intensity = 1.0;
scene.add(ambientLight);
color: THREE.Color | string
The color of the ambient light. Can be a THREE.Color or CSS color string.
Example:
ambientLight.color = '#ffddaa';
intensity: number
The intensity or brightness of the ambient light. Numeric value controlling the overall scene illumination level.
Example:
ambientLight.intensity = 0.5;