ARKitLight class
ARKitLight represents a light that can be attached to a ARKitNode.
- Annotations
-
- @JsonSerializable()
Constructors
- ARKitLight({ARKitLightType type = ARKitLightType.omni, Color? color = Colors.white, double temperature = 6500, double? intensity, double spotInnerAngle = 0, double spotOuterAngle = 45})
Properties
- color → Color?
-
Specifies the receiver's color.
Defaults to white.
The renderer multiplies the light's color is by the color derived from the light's temperature.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
-
intensity
→ ValueNotifier<
double> -
This intensity is used to modulate the light color.
When used with a physically-based material, this corresponds to the luminous flux of the light, expressed in lumens (lm).
Defaults to 1000.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- spotInnerAngle → double
-
The angle in degrees between the spot direction and the lit element below which the lighting is at full strength.
Defaults to 0.
final
- spotOuterAngle → double
-
The angle in degrees between the spot direction and the lit element after which the lighting is at zero strength.
Defaults to 45 degrees.
final
- temperature → double
-
This specifies the temperature of the light in Kelvin.
The renderer multiplies the light's color by the color derived from the light's temperature.
Defaults to 6500 (pure white).
final
- type → ARKitLightType
-
Light type.
Defaults to ARKitLightType.omni.
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
fromJson(
Map< String, dynamic> json) → ARKitLight