Env cascade light: Difference between revisions
Jump to navigation
Jump to search

Bug:In
, Lightstyles will break when this entity exists. [todo tested in ?]
Note:It is recommended to have a
(corrected kv param types) |
(lightcolorscale) |
||
Line 25: | Line 25: | ||
{{IO|SetAngles|Sets the direction shadows cast in.|param=string}} | {{IO|SetAngles|Sets the direction shadows cast in.|param=string}} | ||
{{IO|LightColor|Changes color of the sunlight.|param=color255}} | {{IO|LightColor|Changes color of the sunlight.|param=color255}} | ||
{{IO|LightColorScale|nofgd=1| | {{IO|LightColorScale|Boosts the color of the sunlight. Non-functional, only resets the Light Color.|nofgd=1|deprecated=1}} | ||
{{I EnableDisable}} | {{I EnableDisable}} | ||
{{I BaseEntity}} | {{I BaseEntity}} |
Revision as of 09:51, 23 September 2018


It casts an extremely accurate shadow map via the tools/skybox
texture, acting as a real-time variation of light_environment. This form of lighting is known as cascade shadow maps, which works by rendering very detailed shadow maps which becomes a lower and lower resolution depending on the distance the viewer is from the surface, similar to mipmaps. Some games automatically add this entity to the map, but it can be placed manually as well.



light_environment
in your map as well to create lightmap based lighting, which is not done by this entity.Todo: Update for Black Mesa: Source. Keyvalues etc may be missing.
Represented by class
CCascadeLight
.
Keyvalues
- Max shadow distance (maxshadowdistance) ([todo internal name (i)]) <float>
- Maximum dynamic shadow distance. Higher values are slower, default on PC is 400 units.
- Use light_environment's angles (uselightenvangles) ([todo internal name (i)]) <boolean>
- If true, the CSM shadow angles are automatically taken from a light_environment's angles. If false, this entity's Pitch Yaw Roll is used.
- Start Disabled (StartDisabled) <boolean>
- Stay dormant until activated (with the
Enable
input).
Inputs
- SetAngles <string >
- Sets the direction shadows cast in.
- LightColor <color255 >
- Changes color of the sunlight.
LightColorScale!FGD- Deprecated.
Boosts the color of the sunlight. Non-functional, only resets the Light Color.
EnableDisable:
- Enable / Disable
- Enable/disable this entity from performing its task. It might also disappear from view.