RectAreaLight class Lighting and environment

A rectangle that emits light from its face, shaded with linearly transformed cosines so the highlight stretches and the falloff follows the panel's true shape and area.

Attach one by adding a RectAreaLightComponent to a node. The rectangle lies in the node's local XY plane, width along local X and height along local Y, emitting along local +Z (matching the directional-light aim convention). One-sided; the back face emits nothing. Area lights cast no shadows.

Constructors

RectAreaLight({Vector3? color, double intensity = 1.0, double width = 1.0, double height = 1.0, double range = 0.0})
Creates a RectAreaLight.

Properties

color ↔ Vector3
Linear RGB color of the light.
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
height double
The rectangle's world-space height along the node's local Y axis (before node scale).
getter/setter pair
intensity double
Scalar multiplier applied to color; the emitted radiance of the panel's surface. The received light also grows with the panel's area.
getter/setter pair
range double
World-space distance from the panel's center at which its influence windows to zero. 0 means infinite range (the form factor's own inverse-square falloff still applies).
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
width double
The rectangle's world-space width along the node's local X axis (before node scale).
getter/setter pair

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