shadow_control

From Source Entities
Jump to navigation Jump to search

Code classes:

Shadow control.png

shadow_control is a point entity present in all Source games. It sets properties of dynamic shadows cast by moving objects. Not needed in Csgo-small.png; see env_cascade_light.

Keyvalues[edit | edit source]

Pitch Yaw Roll (Y Z X) (angles) <angle>
Direction shadows will cast in. This should usually match the angles of a light_environment.
Shadow Color (color) <color255>
Color of the shadows.
Maximum Distance (distance) <float>
Maximum distance that shows can cast in world units.
All Shadows Disabled (disableallshadows) <boolean>
Disables shadows completely.
Enable Local Light Shadows (enableshadowsfromlocallights) <boolean> (available in all games since L4d.png)
If enabled, shadows will change angles realistically when the object is near a light source.
Note: Missing from the FGD in Asw.pngP2.png; enabled by default.

Inputs[edit | edit source]

Color <color255>
Sets Shadow Color.
Direction <vector>
Sets the shadow direction as a vector.
SetDistance <float>
Sets Maximum Distance.
SetAngles <angle>
Sets Pitch Yaw Roll (shadow direction as a set of angles).
SetShadowsDisabled <boolean>
Sets All Shadows Disabled.
SetShadowsFromLocalLightsEnabled <boolean> (available in all games since L4d.png)
Sets Enable Local Light Shadows.