Visit the Documentation of the upcoming Threlte 6.
  1. @threlte/core
  2. AmbientLight

@threlte/core

AmbientLight

This module is deprecated. You can still use it but it will be removed in the future. Please consider using <T>/<Three> instead. Please read the update notice.

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

Package

NPM View Package

Related Docs


Example

<script>
  import { AmbientLight } from '@threlte/core'
</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
dispose: boolean | undefined = undefined
userData: Record<string, any> | undefined = undefined
color: THREE.ColorRepresentation | undefined = undefined
intensity: number | undefined = undefined

Bindings

inViewport: boolean
light: THREE.AmbientLight

Events

viewportenter: undefined
viewportleave: undefined