LightingQuality enum
Quality used when a light casts shadows.
Shadows are computed by casting rays from the light center against the
registered LightingOccluders and building a visibility polygon. More rays
produce more accurate silhouettes around occluder corners, at a higher CPU
cost. This only affects lights with LightingConfig.castShadows = true.
Values
- low → const LightingQuality
-
24 rays per light. Good for small lights or low end devices.
const LightingQuality(24) - medium → const LightingQuality
-
64 rays per light. The default balance between quality and cost.
const LightingQuality(64) - high → const LightingQuality
-
160 rays per light. Smooth silhouettes, recommended for a few large lights only.
const LightingQuality(160)
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- index → int
-
A numeric identifier for the enumerated value.
no setterinherited
- name → String
-
Available on Enum, provided by the EnumName extension
The name of the enum value.no setter - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- shadowRays → int
-
Number of rays cast around each light.
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Constants
-
values
→ const List<
LightingQuality> - A constant List of the values in this enum, in order of their declaration.