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:You still need to have a
(lightcolorscale) |
No edit summary |
||
Line 9: | Line 9: | ||
{{bug|In {{insurgency}}, [[Naming Lights|Lightstyles]] will break when this entity exists.}} | {{bug|In {{insurgency}}, [[Naming Lights|Lightstyles]] will break when this entity exists.}} | ||
{{note| | {{note|You still need to have a <code>light_environment</code> 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.}} | {{todo|Update for Black Mesa: Source. Keyvalues etc may be missing.}} |
Revision as of 22:32, 12 February 2019


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.