Light deferred global: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
m (Nesciuse moved page Light deferred global/en to Light deferred global without leaving a redirect: Move en subpage to basepage)
No edit summary
Line 9: Line 9:


== Keyvalues ==
== Keyvalues ==
=== Light ===
{{KV Targetname}}
{{KV Angles}}
{{KV|Color diffuse|intn=diffuse|color255 + int|Sets the light's color and brightness.}}
{{KV|Color diffuse|intn=diffuse|color255 + int|Sets the light's color and brightness.}}
{{KV|Color ambient high|intn=ambient_high|color255 + int|Sets the light's ambient color and brightness.}}
{{KV|Color ambient high|intn=ambient_high|color255 + int|Sets the light's ambient color and brightness.}}
{{KV|Color ambient low|intn=ambient_low|color255 + int|{{todo|Whats the difference between this and High?}}}}
{{KV|Color ambient low|intn=ambient_low|color255 + int|{{todo|Whats the difference between this and High?}}}}
{{KV|Fade interval time|intn=fadetime|float|{{todo|What does this do?}}}}
{{KV|Fade interval time|intn=fadetime|float|{{todo|What does this do?}}}}
=== Base ===
{{KV|Name|intn=targetname|string|The name that other entities use to refer to this entity.}}
{{KV|Pitch Yaw Roll|intn=X Y Z|angle|This entity's orientation in the world. Pitch is rotation around the Y axis, yaw is the rotation around the Z axis, roll is the rotation around the X axis.}}


== Flags ==
== Flags ==
Line 23: Line 20:
{{Fl|2|Enable shadow|Enables dynamic shadows.}}
{{Fl|2|Enable shadow|Enables dynamic shadows.}}
{{Fl|4|Enable transitions}}{{todo|what does this do?}}
{{Fl|4|Enable transitions}}{{todo|what does this do?}}
== Inputs ==
{{I BaseEntity|base=1}}
== Outputs ==
{{O BaseEntity|base=1}}


== See also==
== See also==

Revision as of 10:14, 26 September 2024

English (en)Translate (Translate)
Light environment.png

light_deferred_global is a point entity available in Alien Swarm Deferred Alien Swarm Deferred and Lambda Wars Lambda Wars.

It creates real-time shadows and lighting coming from the sun. Similar to env_cascade_light. While this entity can be edited in Hammer, it's preferable to use the games light editor as you can see what you are doing.

C++ In code, it is represented by theCDeferredLightGlobalclass, defined in theCDefLightGlobal.cppfile.
Confirm:Does this entity also exists in Portal 2: Desolation Portal 2: Desolation?

Keyvalues

Name (targetname) <string>[ Edit ]
The name that other entities refer to this entity by, via Inputs/Outputs or other keyvalues (e.g. parentname or target).
Also displayed in Hammer's 2D views and Entity Report.
See also:  Generic Keyvalues, Inputs and Outputs available to all entities

Pitch Yaw Roll (Y Z X) (angles) <QAngle>
This entity's orientation in the world. Pitch is rotation around the Y axis, yaw is the rotation around the Z axis, roll is the rotation around the X axis.
Color diffuse (diffuse) <color255 + int>
Sets the light's color and brightness.
Color ambient high (ambient_high) <color255 + int>
Sets the light's ambient color and brightness.
Color ambient low (ambient_low) <color255 + int>
Todo: Whats the difference between this and High?
Fade interval time (fadetime) <float>
Todo: What does this do?

Flags

Enabled : [1]
Turns the light on.
Enable shadow : [2]
Enables dynamic shadows.
Enable transitions : [4]
Todo: what does this do?

See also