Light class sealed
Base class for reusable render light settings.
Lights belong to the rendering layer, not to Jolt Physics. To create a physical lamp, keep a Light and a rigid body as separate objects and copy the body's position to the light each frame.
- Implementers
Properties
- castShadows → bool
-
Whether this light should cast shadows.
final
- color → Vector3
-
RGB color components in the range expected by the renderer.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- intensity → double
-
Luminous intensity interpreted by the active renderer.
final
- nativeType → int
-
Internal identifier passed to the native renderer.
no setter
- 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.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited