API ReferenceSandbox
Lightclass
Constructors1
Showing 1 constructors
protected Light()
No results match this filter.
Methods5
Showing 5 methods
protected virtual Sandbox.SceneLight CreateSceneObject()
protected virtual void OnAwake()
Returns:
void—protected virtual void OnDisabled()
Returns:
void—protected virtual void OnEnabled()
Returns:
void—protected virtual void OnTagsChanged()
Tags have been updated - lets update our light's tags
Returns:
void—No results match this filter.
Properties9
Showing 9 properties
public int Sandbox.Light.BakeLightIndex { get; set; }
Index used by baked probe/lightmap direct-light textures, or -1 for a dynamic light.
Returns:
int—public Sandbox.Light.LightContribution Sandbox.Light.Contribution { get; set; }
Which lighting terms this light is allowed to contribute to. For example, turn off `Sandbox.Light.LightContribution.Specular` to stop a light producing highlights.
public Sandbox.Light.FogInfluence Sandbox.Light.FogMode { get; set; }
public float Sandbox.Light.FogStrength { get; set; }
Returns:
float—public bool Sandbox.Light.MixedShadows { get; set; }
Baked lighting with realtime shadows from dynamic objects, like Hammer's stationary lights. Requires a baked light index and enabled shadows.
Returns:
bool—public float Sandbox.Light.ShadowBias { get; set; }
Returns:
float—public float Sandbox.Light.ShadowHardness { get; set; }
Returns:
float—public bool Sandbox.Light.Shadows { get; set; }
Should this light cast shadows?
Returns:
bool—No results match this filter.