Env sun: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
Loothelion (talk | contribs) No edit summary |
||
Line 3: | Line 3: | ||
==Entity description== | ==Entity description== | ||
It places a Sun or Moon effect (glow sprite) in the [[skybox]] where it does not parallax, giving the impression that it is nearly infinitely far away. The env_sun Entity does not contribute any actual lighting. | It places a Sun or Moon effect (glow sprite) in the [[skybox]] where it does not parallax, giving the impression that it is nearly infinitely far away. The env_sun Entity does not contribute any actual lighting. | ||
use with light_enviornment and shadow_control | |||
{{map_properties}} | {{map_properties}} |
Revision as of 20:40, 29 July 2013
Entity description
It places a Sun or Moon effect (glow sprite) in the skybox where it does not parallax, giving the impression that it is nearly infinitely far away. The env_sun Entity does not contribute any actual lighting.
use with light_enviornment and shadow_control
- You can also send inputs to the env_sun entity by directing them to "env_sun" instead of using a target name.
- The effect is additive with the sky: a pure yellow sun with a bright blue sky will appear white in-game; change the color to account for this.
Keyvalues
- Viewer entity ([todo internal name (i)]) <targetname>
- Name of an entity used to determine where the sun is in the skybox. The sun should be lined up on a line from this entity to the env_sun entity.
- UseAngles ([todo internal name (i)]) <boolean>
- The old way to orient env_sun is to point it at a target. The new way is to specify the angles. If you use the new way, set this property to YES.
- Pitch ([todo internal name (i)]) <integer>
- This value sets the pitch position of the sun. It overrides the pitch value in the angles keyvalue, even if left at 0, so it needs to be specified. Contrary to the angles keyvalue, the rotation of this pitch is measured counter-clockwise from the horizontal, so that 90 is straight up, while -90 is straight down. (It's simply the negative of a normal pitch value.)
- Overlay Color (R G B) ([todo internal name (i)]) <color255>
- A value of 0 0 0 will act the old way. Todo: Explain what the old way is.
- Overlay Size ([todo internal name (i)]) <integer>
- A value of -1 means the overlay will act the old way.
- HDR color scale. ([todo internal name (i)]) <float>
- float value to multiply sprite color by when running in HDR mode.
- Name (targetname) <string>[ Edit ]
- The name that other entities refer to this entity by, via Inputs/Outputs or other keyvalues (e.g.
parentname
ortarget
).
Also displayed in Hammer's 2D views and Entity Report.See also: Generic Keyvalues, Inputs and Outputs available to all entities
Inputs
- TurnOn
- Enable sun rendering.
- TurnOff
- Disable sun rendering.
- SetColor <color255 >
- Change the sun's color. Format: <Red 0-255> <Green 0-255> <Blue 0-255>