s&box docs

public class Sandbox.SceneLight : Sandbox.SceneObject

Base class for light scene objects for use with a `Sandbox.SceneWorld`.

Constructors

Showing 2 constructors

Properties

Showing 14 properties

public float Sandbox.SceneLight.ConstantAttenuation { get; set; }

The light attenuation constant term

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.

Metadata

FieldValue
NamespaceSandbox
Typeclass
AssemblySandbox.Engine
Doc IDT:Sandbox.SceneLight

On this page