Light environment: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
m (Linked in Vrad, VMF, skybox articles)
(Clarified extra light_env needed with 3d skybox)
Line 6: Line 6:
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 [[VMF]] file. If multiple light_environment entities are placed, [[VRAD]] uses the keyvalues from the first placed light_environment to calculate the lighting.
Normally, only one light_environment entity is required per [[VMF]] file. A [[3D skybox]] requires placement of an extra light_environment (see [[3D skybox]] article for further details). 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 09:01, 8 February 2006

Template:Wrongtitle

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.

Normally, only one light_environment entity is required per VMF file. A 3D skybox requires placement of an extra light_environment (see 3D skybox article for further details). If multiple light_environment entities are placed, VRAD uses the keyvalues from the first placed light_environment to calculate the lighting.

Keyvalues

<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".

See Also