1. Core Components
  2. AmbientLight

Core Components

AmbientLight

This light globally illuminates all objects in the scene equally.
This light cannot be used to cast shadows as it does not have a direction.

Import

Source

GitHub View Source Code

Example

<script>
  import { AmbientLight } from 'threlte'
</script>

<AmbientLight color={0xd7681c} intensity={0.3} />

Properties

// optional
position: Position | undefined = undefined
scale: Scale | undefined = undefined
rotation: Rotation | undefined = undefined
lookAt: LookAt | undefined = undefined
viewportAware: boolean = false
castShadow: boolean | undefined = undefined
receiveShadow: boolean | undefined = undefined
frustumCulled: boolean | undefined = undefined
renderOrder: number | undefined = undefined
visible: boolean | undefined = undefined
color: THREE.ColorRepresentation | undefined = undefined
intensity: number | undefined = undefined

Bindings

inViewport: boolean
light: THREE.AmbientLight

Events

viewportenter: undefined
viewportleave: undefined