ShadowMode

Per-shape opt-in for cascaded sun-shadow participation. One enum value selects whether a renderable casts, receives, both, or neither. Decoupled from ShapeAttributes.isLightingEnabled (which controls Lambertian shading only) so cast and receive can be configured independently of shading.

The ENABLED default means the shape participates in both passes when earth.worldwind.layer.shadow.ShadowLayer is in the layer list. Apps that need to opt out per-shape pick one of the other modes.

Entries

Link copied to clipboard

Neither casts nor receives. Sun-independent overlay-style rendering.

Link copied to clipboard

Casts onto other receivers and receives shadows on its own surface.

Link copied to clipboard

Casts but ignores incoming shadows on its own surface.

Link copied to clipboard

Receives shadows but doesn't project onto the ground. Useful for unlit-style 3D models.

Properties

Link copied to clipboard

Whether the shape's geometry should be rasterised into the cascade depth maps.

Link copied to clipboard

Returns a representation of an immutable list of all enum entries, in the order they're declared.

Link copied to clipboard
expect val name: String
Link copied to clipboard
expect val ordinal: Int
Link copied to clipboard

Whether the shape's fragments should sample the cascade depth maps and be darkened.

Functions

Link copied to clipboard

Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Link copied to clipboard

Returns an array containing the constants of this enum type, in the order they're declared.