VegaRise.NET
Back to DOM

LightRigClass

Definition

Namespace
DOM.Elements.Graphics
Assembly
DOM.dll

Represents the lighting configuration for a 3D scene.

Remarks

A light rig combines a rig preset (which defines the number and type of lights) with a direction (which defines the primary light vector) and an optional rotation. Together with and, it produces the shading, highlights, and shadows visible on extruded 3D shapes and text. Camera Shape3DType

Examples

csharp
1// 1. Balanced three-point light from the top-left
2var rig = new LightRig
3{
4 Rig = LightRigValues.balanced,
5 Direction = LightRigDirectionValues.tl
6};
7
csharp
1// 2. Soft flood light from the top
2var rig = new LightRig
3{
4 Rig = LightRigValues.flood,
5 Direction = LightRigDirectionValues.t
6};
7
csharp
1// 3. Harsh side light with rotation
2var rig = new LightRig
3{
4 Rig = LightRigValues.harsh,
5 Direction = LightRigDirectionValues.l,
6 Rotation = new CameraRotation { Revolution = 90 }
7};
8
csharp
1// 4. Attach to a 3D scene
2var scene = new Scene3D
3{
4 Camera = new Camera { preset = PresetCameraValues.isometricTopUp },
5 LightRig = new LightRig
6 {
7 Rig = LightRigValues.morning,
8 Direction = LightRigDirectionValues.tr
9 }
10};
11

Properties

Gets or sets the primary light direction.

Gets or sets the light rig preset.

Gets or sets an optional rotation applied to the entire light rig.

VegaRiseVDocs.NET

Create Account

Create your VDocs account.

or

Already have an account? Sign in