LightValues
The preset-level values of a light, captured from a preset or from a placed light.
| Namespace | Assembly | Kind | Stability |
|---|---|---|---|
Raptor.EditorTools | Raptor.Editor | struct | preview, since 0.1.0 |
Position, rotation and surface offset belong to placement and are not included.
public struct LightValuesFields
angle
public float angle;The spot's outer angle.
bitmask
public int bitmask;The light's bake mask.
color
public Color color;The light's colour.
compareSize
public bool compareSize;Area lights only. Whether to compare the quad size when these values are compared with another set. A preset fitted to a face sets false, and a placed light sets true. Sizes are compared only when both sets are true.
iesFile
public Object iesFile;The IES profile asset, or null.
indirect
public float indirect;The indirect intensity.
innerAngle
public float innerAngle;The spot's inner angle.
intensity
public float intensity;The light's intensity.
kindCode
public int kindCode;The light's kind: 0 for Point, 1 for Spot, 2 for Area and 3 for IES point.
legacySampling
public bool legacySampling;Whether the light uses the older sampling.
range
public float range;The range for point-family lights, or the area cutoff for Area lights.
realisticFalloff
public bool realisticFalloff;Whether the light uses realistic falloff.
samples
public int samples;The shadow samples.
shadowSpread
public float shadowSpread;The shadow spread.
size
public Vector2 size;The area quad's size.