Light3DComponent class
A light at its entity's transform. A Light3DKind.directional light shines from far away along the entity's forward (+Z) axis (the sun), a Light3DKind.point light from its position in every direction, and a Light3DKind.spot light in a cone from its position along that axis.
Constructors
- Light3DComponent({Light3DKind kind = Light3DKind.point, Color color = const Color(0xFFFFFFFF), double intensity = 10.0, double range = 0.0, double innerConeAngle = 0.0, double outerConeAngle = 0.7853981633974483})
-
A light of
kind.
Properties
- color ↔ Color
-
Its colour (sRGB, as picked).
getter/setter pair
- componentType → Type
-
Type identifier for this component
no setterinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
- innerConeAngle ↔ double
-
Spot: full brightness inside this angle (radians).
getter/setter pair
- intensity ↔ double
-
Brightness: lux-like for a directional light, candela-like otherwise.
getter/setter pair
- kind ↔ Light3DKind
-
Directional, point or spot.
getter/setter pair
- outerConeAngle ↔ double
-
Spot: no light outside this angle (radians).
getter/setter pair
- range ↔ double
-
Where a point or spot light stops reaching, in metres; 0 for no limit.
getter/setter pair
- 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
-
onAttach(
EntityId entityId) → void -
Called when this component is added to an entity.
inherited
-
onDetach(
EntityId entityId) → void -
Called when this component is removed from an entity.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited