Env fog controller: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
Line 9: | Line 9: | ||
* {{kv targetname}} | * {{kv targetname}} | ||
* {{kv angles}} | * {{kv angles}} | ||
* fogcolor | * {{kv dxlevelchoice}} | ||
: <color255> | * '''fogcolor''' | ||
* fogcolor2 | : '''<[[color255]]>''' | ||
: <color255> | * '''fogcolor2''' | ||
* fogdir | : '''<[[color255]]>''' | ||
* '''fogdir''' | |||
: <vector> A vector that determines the directions of the primary and secondary fog, relative to the env_fog_controller entity. | : <vector> A vector that determines the directions of the primary and secondary fog, relative to the env_fog_controller entity. | ||
* fogstart | * '''fogstart''' | ||
: <float> How far from the point-of-view the fog should start. | : <float> How far from the point-of-view the fog should start. | ||
* fogend | * '''fogend''' | ||
: <float> How far from the point-of-view the view should be completely fogged. | : <float> How far from the point-of-view the view should be completely fogged. | ||
* farz | * '''farz''' | ||
: <integer> This is the distance from the point-of-view that the level geometry should stop being drawn at. This can be used to control engine performance. | : <integer> This is the distance from the point-of-view that the level geometry should stop being drawn at. This can be used to control engine performance. | ||
* fogenable | * '''fogenable''' | ||
: {{ | : {{boolean}} | ||
* | * '''fogblend''' | ||
: {{boolean}} This will enable blending between two fog colors, based on the direction the player is looking. It approximates the aesthetic effect of diffuse light filtering through the fog. | |||
* '''use_angles''' | |||
: {{boolean}} | |||
: {{ | ==Inputs== | ||
* | * {{i targetname}} | ||
: {{ | * '''SetStartDist <float>''' | ||
: Set the fog start distance. | |||
* '''SetEndDist <float>''' | |||
: Set the fog end distance. | |||
* '''TurnOn''' | |||
: Turn the fog on. | |||
* '''TurnOff''' | |||
: Turn the fog off. | |||
* '''SetColor <[[color255]]> | |||
: Set the primary fog color. | |||
* '''SetColorSecondary <[[color255]]> | |||
: Set the secondary fog color. | |||
* '''SetFarZ <integer>''' | |||
: Set the far clip plane distance. | |||
* '''SetAngles <string>''' | |||
: Set the angles to use for the secondary fog direction. | |||
==Outputs== | |||
* {{o targetname}} | |||
==See Also== | ==See Also== |
Revision as of 21:15, 5 August 2005
Entity Description
The env_fog_controller entity controls fogging in a level. This has both aesthetic and functional purpose. Functionally, by adding fog to a level, you can hide a far clip plane, and reduce the amount of rendered geometry, improving game performance.
Keyvalues
- <color255>
- fogcolor2
- <color255>
- fogdir
- <vector> A vector that determines the directions of the primary and secondary fog, relative to the env_fog_controller entity.
- fogstart
- <float> How far from the point-of-view the fog should start.
- fogend
- <float> How far from the point-of-view the view should be completely fogged.
- farz
- <integer> This is the distance from the point-of-view that the level geometry should stop being drawn at. This can be used to control engine performance.
- fogenable
- <boolean>
- fogblend
- <boolean> This will enable blending between two fog colors, based on the direction the player is looking. It approximates the aesthetic effect of diffuse light filtering through the fog.
- use_angles
- <boolean>
Inputs
- Template:I targetname
- SetStartDist <float>
- Set the fog start distance.
- SetEndDist <float>
- Set the fog end distance.
- TurnOn
- Turn the fog on.
- TurnOff
- Turn the fog off.
- SetColor <color255>
- Set the primary fog color.
- SetColorSecondary <color255>
- Set the secondary fog color.
- SetFarZ <integer>
- Set the far clip plane distance.
- SetAngles <string>
- Set the angles to use for the secondary fog direction.