Skip to content

PreviewLighting

Namespace Nfty.Model.Render in assembly Nfty.Model.

public readonly record struct PreviewLighting

Preview-only intensity and color for the rasterizer's existing camera-relative light. Does not modify a mesh, texture, archive, or exported model.

Constructors

PreviewLighting(int, Rgba32)

public PreviewLighting(int value, Rgba32 color);

Creates preview lighting.

Parameters

  • value (int) - Intensity from zero through 100.
  • color (Rgba32) - RGB light color; alpha is ignored.

Exceptions

  • ArgumentOutOfRangeException - value is outside zero through 100.

Properties

Color

public Rgba32 Color { get; }

The light's RGB color. Alpha is ignored; rendered texture alpha is preserved.

Default

public static PreviewLighting Default { get; }

The original full-strength white lighting, preserving the original rendered pixels.

Value

public int Value { get; }

Light intensity from zero (black) through 100 (full strength).