PointLight class final

A local light source that emits in every direction from position.

Use point lights for lamps, glowing objects, and movable light sources.

Inheritance

Constructors

PointLight({required Vector3 position, Vector3 color = const Vector3(1, 1, 1), double intensity = 1000, double falloffRadius = 10, bool castShadows = true})
Creates a point 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
falloffRadius double
Radius beyond which the light no longer contributes.
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
position Vector3
World-space position of the source.
final
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