DirectionalLight class final

A light source infinitely far away, described only by its direction.

Use directional lights for sunlight and broad outdoor illumination.

Inheritance

Constructors

DirectionalLight({required Vector3 direction, Vector3 color = const Vector3(1, 1, 1), double intensity = 100000, bool castShadows = true})
Creates a directional light.
const

Properties

castShadows bool
Whether this light should cast shadows.
finalinherited
color Vector3
RGB color components in the range expected by the renderer.
finalinherited
direction Vector3
Direction in which the light travels.
final
hashCode int
The hash code for this object.
no setterinherited
intensity double
Luminous intensity interpreted by the active renderer.
finalinherited
nativeType int
Internal identifier passed to the native renderer.
no setteroverride
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toMessage() Map<String, Object>
Serializes settings for the native renderer bridge.
override
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited