struct AmbientLight3D
Swift
struct AmbientLight3D
Light that reaches every face equally, whatever way it points.
A scene with no ambient light gets one at intensity 0.3, and one with no
directional light gets a default DirectionalLight3D.
Sources/LavaUI/Spatial.swift:567
Constructors
init(color: Color = Color(r: 1, g: 1, b: 1), intensity: Float = 0.3)
Creates an ambient light. intensity below zero is treated as zero.
Sources/LavaUI/Spatial.swift:570
Methods
func spatialElements() -> [SpatialElement]
Not documented.
Sources/LavaUI/Spatial.swift:576