Light environment: Difference between revisions
Jump to navigation
Jump to search
(One light_env per level details) |
m (Linked in Vrad, VMF, skybox articles) |
||
Line 3: | Line 3: | ||
==Entity Description== | ==Entity Description== | ||
The light_environment entity is a light controller, that casts directional lighting from the | The light_environment entity is a light controller, that casts directional lighting from the [[skybox]]. This is to approximate the light cast from the Sun. | ||
The first keyvalue, Brightness, controls direct lighting. This approximates direct sunlight. The second keyvalue, Ambient, controls indirect lighting from the sky. This is the diffuse light the is cast on every face that can "see" the sky. | The first keyvalue, Brightness, controls direct lighting. This approximates direct sunlight. The second keyvalue, Ambient, controls indirect lighting from the sky. This is the diffuse light the is cast on every face that can "see" the sky. | ||
Only one light_environment entity is required per | Only one light_environment entity is required per [[VMF]] file. If multiple light_environment entities are placed, [[VRAD]] uses the keyvalues from the first placed light_environment to calculate the lighting. | ||
==Keyvalues== | ==Keyvalues== |
Revision as of 07:46, 8 February 2006
Entity Description
The light_environment entity is a light controller, that casts directional lighting from the skybox. This is to approximate the light cast from the Sun. The first keyvalue, Brightness, controls direct lighting. This approximates direct sunlight. The second keyvalue, Ambient, controls indirect lighting from the sky. This is the diffuse light the is cast on every face that can "see" the sky.
Only one light_environment entity is required per VMF file. If multiple light_environment entities are placed, VRAD uses the keyvalues from the first placed light_environment to calculate the lighting.
Keyvalues
- Template:Kv angles
- _light
- <color255> This approximates direct sunlight.
- _ambient
- <color255> This is the diffuse light the is cast on every face that can "see" the sky.
- pitch
- <angle> This value overrides the value of pitch in the keyvalue "angles".