Light deferred: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
No edit summary
Line 8: Line 8:
== Keyvalues ==
== Keyvalues ==
{{todo|Add images!}}
{{todo|Add images!}}
{{KV|Color diffuse|intn=_light|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|intn=_light|color255 + int|Sets the light's ambient color and brightness.}}
{{KV|Color ambient|intn=ambient|color255 + int|Sets the light's ambient color and brightness.}}
{{KV|Color Radius|float|Set's how much of the world should it light.}}
{{KV|Color Radius|intn=radius|float|Set's how much of the world should it light.}}
{{KV|Color Falloff powert|float|{{todo}}}}
{{KV|Color Falloff powert|intn=power|float|{{todo}}}}
{{KV|Spotlight cone innert|float|{{todo}}}}
{{KV|Spotlight cone innert|intn=spot_cone_inner|float|{{todo}}}}
{{KV|Spotlight cone outer|float|{{todo}}}}
{{KV|Spotlight cone outer|intn=spot_cone_outer|float|{{todo}}}}
{{KV|Visible distance|int|{{todo}}}}
{{KV|Visible distance|intn=vis_dist|int|{{todo}}}}
{{KV|Visible fade range|int|{{todo}}}}
{{KV|Visible fade range|intn=vis_range|int|{{todo}}}}
{{KV|Shadow distance|int|{{todo}}}}
{{KV|Shadow distance|intn=shadow_dist|int|{{todo}}}}
{{KV|Shadow fade range|int|{{todo}}}}
{{KV|Shadow fade range|intn=shadow_range|int|{{todo}}}}
{{KV|Cookie texture|str|Path to vtf that should be projected.}}
{{KV|Cookie texture|intn=cookietex|str|Path to vtf that should be projected.}}
{{KV|Lightstyle seed|int|{{todo}}}}
{{KV|Lightstyle seed|intn=style_seed|int|{{todo}}}}
{{KV|Lightstyle amount|float|{{todo}}}}
{{KV|Lightstyle amount|intn=style_amt|float|{{todo}}}}
{{KV|Lightstyle speed|float|{{todo}}}}
{{KV|Lightstyle speed|intn=style_speed|float|{{todo}}}}
{{KV|Lightstyle smoothing|float|{{todo}}}}
{{KV|Lightstyle smoothing|intn=style_smooth|float|{{todo}}}}
{{KV|Lightstyle random|float|{{todo}}}}
{{KV|Lightstyle random|intn=style_random|float|{{todo}}}}
 
{{KV|Light type|intn=style|choices|Set's different light types.}}
*{{Fl|0|Point|Make the light sine in all directions.}}
*{{Fl|1|Spot|Make it a spotlight.}}


== Flags ==
== Flags ==

Revision as of 12:10, 9 February 2024

English (en)Translate (Translate)

light_deferred is an e0 available in Alien Swarm Deferred Alien Swarm Deferred.

Warning.pngWarning:
  • The {{{game}}} parameter is inconsistent with the name defined by the {{asd}} template. This can most likely be fixed by setting the value of the {{{game}}} parameter to Alien Swarm Deferred.
    If a parameter is consistent but you're still seeing this warning, it may be an issue with the template itself. Please discuss it on the template's talk page.

and other games that use it's source code.

For most optimal light placing use the game's built in Light editor.

Confirm:Does this entity also exists in Portal 2: Desolation Portal 2: Desolation?

It creates an invisible dynamic light source that can shines in all directions or only one side.

Keyvalues

Todo: Add images!
Color diffuse (diffuse) <color255 + int>
Sets the light's color and brightness.
Color ambient (ambient) <color255 + int>
Sets the light's ambient color and brightness.
Color Radius (radius) <float>
Set's how much of the world should it light.
Color Falloff powert (power) <float>
[Todo]
Spotlight cone innert (spot_cone_inner) <float>
[Todo]
Spotlight cone outer (spot_cone_outer) <float>
[Todo]
Visible distance (vis_dist) <integer>
[Todo]
Visible fade range (vis_range) <integer>
[Todo]
Shadow distance (shadow_dist) <integer>
[Todo]
Shadow fade range (shadow_range) <integer>
[Todo]
Cookie texture (cookietex) <string>
Path to vtf that should be projected.
Lightstyle seed (style_seed) <integer>
[Todo]
Lightstyle amount (style_amt) <float>
[Todo]
Lightstyle speed (style_speed) <float>
[Todo]
Lightstyle smoothing (style_smooth) <float>
[Todo]
Lightstyle random (style_random) <float>
[Todo]


Light type (style) <choices>
Set's different light types.
Point : [0]
Make the light sine in all directions.
Spot : [1]
Make it a spotlight.

Flags

Enabled : [1]
Turns the light on.
Enable shadow : [2]
Enables dynamic shadows
Enable cookie : [4]
Enables cookie texture casting.
Enable volumetrics : [8]
Enables realtime volumetric lighting.
Enable lightstyle : [16]
Enables lightstyles
Todo: what does this actually do?

Choices

Point : [0]
Make the light sine in all directions.
Spot : [1]
Make it a spotlight.

Inputs

Empty

This article or section is empty. You can help by adding it.


Outputs

Empty

This article or section is empty. You can help by adding it.

See also