Back to Filament

spotLightCone

docs/android/dokka/filament-android/com.google.android.filament/-light-manager/-builder/spot-light-cone.md

1.75.01.2 KB
Original Source

//filament-android/com.google.android.filament/LightManager/Builder/spotLightCone

spotLightCone

[main]
open fun spotLightCone(inner: Float, outer: Float): LightManager.Builder

Defines a spot light's angular falloff attenuation.

A spot light is defined by a position, a direction and two cones, inner and outer. These two cones are used to define the angular falloff attenuation of the spot light and are defined by the angle from the center axis to where the falloff begins (i.e. cones are defined by their half-angle).

note: The spot light cone is ignored for directional and point lights.

Return

This Builder, for chaining calls.

Parameters

main

innerinner cone angle in radian between 0 and pi/2
outerouter cone angle in radian between inner and pi/2

See also

LightManager.Type