RaptorRtLight
A GPU light record for the Ray-traced preview.
| Namespace | Assembly | Kind | Stability |
|---|---|---|---|
Raptor.Render.EditorTools | RaptorRender.Editor | struct | preview, since 0.1.0 |
An IRaptorRtLightSource fills these.
public struct RaptorRtLightFields
color
public Vector4 color;rgb is the linear colour multiplied by the intensity, and a is the bounce scale.
dirFlags
public Vector4 dirFlags;xyz is the forward direction, and w is the sum of the Flag constants that apply.
FlagDirectInFinal
public const int FlagDirectInFinal;A flag stored in the w of dirFlags (value 1).
FlagHemispherical
public const int FlagHemispherical;A flag stored in the w of dirFlags (value 4).
FlagSelfShadow
public const int FlagSelfShadow;A flag stored in the w of dirFlags (value 8).
FlagShadows
public const int FlagShadows;A flag stored in the w of dirFlags (value 2).
FlagSkyCube
public const int FlagSkyCube;A flag stored in the w of dirFlags (value 16).
p0
public Vector4 p0;Depends on the light type. For point and cone lights: inverse cutoff, falloff, squared radius and shadow spread. For sun lights: spread. For area lights: first triangle, triangle count, total area and inverse cutoff.
p1
public Vector4 p1;For cone lights, the two angle terms.
posType
public Vector4 posType;xyz is the position, and w is one of the Type constants.
TypeArea
public const int TypeArea;A light type stored in the w of posType (value 4).
TypeCone
public const int TypeCone;A light type stored in the w of posType (value 1).
TypePoint
public const int TypePoint;A light type stored in the w of posType (value 0).
TypeSky
public const int TypeSky;A light type stored in the w of posType (value 3).
TypeSun
public const int TypeSun;A light type stored in the w of posType (value 2).
Properties
Stride
public static int Stride { get; }The size of one record in bytes, for a compute buffer.
Related types
- IRaptorRtLightSource: Reads one light system's scene lights for the Ray-traced preview and the Lights tool.