ShadowCasterFaces enum Lighting and environment
Which faces of a shadow caster are rendered into the shadow map (the others are culled). Trades the two shadow-map failure modes (self-shadow acne vs peter-panning) against each other.
Values
- front → const ShadowCasterFaces
-
Render the light-facing (front) faces; cull back faces. The general-purpose default. Self-shadow acne on lit surfaces is held off by the depth and normal bias, which is hard to tune at grazing light angles.
- back → const ShadowCasterFaces
-
Render the faces pointing away from the light (back faces); cull front faces ("second-depth" shadow mapping). For solid, watertight geometry this removes self-shadow acne on lit surfaces, since the recorded depth is the far side of the body. The tradeoff is peter-panning (a shadow can detach from a thin caster); on thick bodies the offset hides inside the solid, so this is a good fit for blocky/voxel worlds.
- both → const ShadowCasterFaces
-
Render both faces (no culling). Records the nearest face, like front for closed geometry, but also captures one-sided or open meshes.
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
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<
ShadowCasterFaces> - A constant List of the values in this enum, in order of their declaration.