A sky that exposes a directional sun, so the engine can drive a matching shadow-casting directional light from it.
The built-in ShaderSkySources with a sun (GradientSkySource,
PhysicalSkySource) implement this; assign one (or any sky that does) to a
SunLight to cast hard shadows that track the sky's sun. A custom
ShaderSkySource participates by implementing these getters.
- Implementers
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- sunDirection → Vector3
-
Direction toward the sun in world space (need not be unit length). The
derived light travels the opposite way.
no setter
- sunLightColor → Vector3
-
Linear-RGB color the sun contributes as a directional light. Combined
with sunLightIntensity.
no setter
- sunLightIntensity → double
-
Scalar intensity for the derived directional light.
no setter
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