Light environment: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
mNo edit summary
Line 1: Line 1:
{{wrongtitle|title=light_environment}}
{{wrongtitle|title=light_environment}}
{{base_point}}


==Entity Description==
==Entity Description==
[[Image:light_environment.png|left]]
[[Image:light_environment.png|left]]
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 '''light_environment''' entity is a light controller, that casts directional lighting from the [[skybox]] texture. 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 diffused light that 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 diffused light that is cast on every face that can "see" the sky.


If you don't want to come up with your own values for this entity, the values used in the official [[Valve]] games for each skybox, are given [[Sky_List|here]].
If you don't want to come up with your own values for this entity, the values used in the official [[Valve]] games for each skybox, are given [[Sky_List|here]].


Normally, only one light_environment entity is required per [[VMF]] file. A [[3D Skybox]] requires placement of an extra light_environment. If multiple light_environment entities are placed, [[Vrad]] uses the keyvalues from the first placed light_environment to calculate the lighting.{{clr}}
Normally, only one light_environment entity is required per [[VMF]] file. A [[3D Skybox]] requires placement of an extra light_environment. If multiple light_environment entities are placed, [[Vrad]] uses the keyvalues from the first placed light_environment to calculate the lighting.
 
* See also [[Lighting]] and [[List_of_entities#Light_Entities|Light entities]]
{{clr}}


==Keyvalues==
==Keyvalues==

Revision as of 14:56, 12 April 2008

Template:Wrongtitle Template:Base point

Entity Description

Light environment.png

The light_environment entity is a light controller, that casts directional lighting from the skybox texture. 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 diffused light that is cast on every face that can "see" the sky.

If you don't want to come up with your own values for this entity, the values used in the official Valve games for each skybox, are given here.

Normally, only one light_environment entity is required per VMF file. A 3D Skybox requires placement of an extra light_environment. If multiple light_environment entities are placed, Vrad uses the keyvalues from the first placed light_environment to calculate the lighting.

Keyvalues

#000000 This approximates direct sunlight.
  • _ambient
#000000 This is the diffuse light that is cast on every face that can "see" the sky.
  • _lightHDR
#000000 This approximates direct HDR sunlight. Can be left as default or be slightly less bright, since HDR is sometimes rendered brighter.
  • _ambientHDR
#000000 This is the diffuse HDR light. Can be left as default or be slightly less bright.
  • pitch
<angle> This value overrides the value of pitch in the keyvalue "angles". 90 is straight up, -90 is straight down.

See Also