Click or drag to resize
DigitalRuneLightNodeClip Property
Gets or sets the clip geometry.

Namespace: DigitalRune.Graphics.SceneGraph
Assembly: DigitalRune.Graphics (in DigitalRune.Graphics.dll) Version: 1.2.0.0 (1.2.1.14562)
Syntax
public IGeometricObject Clip { get; set; }

Property Value

Type: IGeometricObject
The clip geometry. The default value is (no clipping).
Remarks

A clip geometry is an IGeometricObject (e.g. a GeometricObject or another SceneNode) which defines the volume that can be lit by this light. Objects outside the clip geometry are not lit. This can be used to avoid that a light inside a room illuminates objects in the neighbor room, without using shadow mapping.

Per default, the light affects only objects inside the clip geometry. If InvertClip is set, the light affects only objects outside the clip geometry.

The clip geometry is positioned in world space. Its shape is typically a simple shape, like a box or a composite shape containing several boxes. But the shape can also be a triangle mesh.

The clip geometry can be shared by several lights. For example, all lights in a room can reference one clip geometry that describes the interior of the room.

When the LightNode is cloned, Clip is copied by reference!

See Also