drawing::lighting

Structs

AmbientLight

A non-rendering singleton ambient-light override for its scene.

Properties

color

Type: Property<Color>

Ambient color.

intensity

Type: Property<f64>

Ambient intensity multiplier.

enabled

Type: Property<bool>

Whether this ambient override participates in topmost-wins selection.


LightFrame

A non-rendering container that keeps descendant lights from escaping its subtree.

Lights outside the frame may still illuminate its descendants. Each expanded frame instance has its own lexical lighting identity.


LightSource

A non-rendering light resource that affects light-reactive vector materials in its scene.

Properties

color

Type: Property<Color>

Light color.

intensity

Type: Property<f64>

Light intensity multiplier.

radius

Type: Property<Size>

Radius for point-light attenuation.

z

Type: Property<Depth>

Logical scene depth in pixels.

shape

Type: Property<LightShape>

Positional or directional light shape.

direction

Type: Property<Vector3>

Direction for directional lights.

enabled

Type: Property<bool>

Whether this light contributes to the scene.