API ReferenceSandbox
public class Sandbox.SceneLight : Sandbox.SceneObject
Base class for light scene objects for use with a `Sandbox.SceneWorld`.
Constructors
Showing 2 constructors
No results match this filter.
Properties
Showing 14 properties
public float Sandbox.SceneLight.ConstantAttenuation { get; set; }
The light attenuation constant term
public Sandbox.SceneLight.FogLightingMode Sandbox.SceneLight.FogLighting { get; set; }
public float Sandbox.SceneLight.FogStrength { get; set; }
public Color Sandbox.SceneLight.LightColor { get; set; }
Color and brightness of the light
public Sandbox.Texture Sandbox.SceneLight.LightCookie { get; set; }
Access the LightCookie - which is a texture that gets drawn over the light
public float Sandbox.SceneLight.LinearAttenuation { get; set; }
The light attenuation linear term
public float Sandbox.SceneLight.QuadraticAttenuation { get; set; }
The light attenuation quadratic term
public float Sandbox.SceneLight.Radius { get; set; }
Radius of the light in units
public float Sandbox.SceneLight.ShadowBias { get; set; }
public float Sandbox.SceneLight.ShadowHardness { get; set; }
public bool Sandbox.SceneLight.ShadowsEnabled { get; set; }
Enable or disable shadow rendering
public int Sandbox.SceneLight.ShadowTextureResolution { get; set; }
Get or set the resolution of the shadow map. If this is zero the engine will decide what it should use.
public Sandbox.SceneLight.LightShape Sandbox.SceneLight.Shape { get; set; }
public Vector2 Sandbox.SceneLight.ShapeSize { get; set; }
No results match this filter.
Metadata
| Field | Value |
|---|---|
| Namespace | Sandbox |
| Type | class |
| Assembly | Sandbox.Engine |
| Doc ID | T:Sandbox.SceneLight |