Volumetric lighting

From Valve Developer Community
Jump to: navigation, search
English (en)Translate (Translate)

Split-arrows.png Split

It has been suggested that this article or section be split into multiple articles: Somewhere down the line, this page ended up being used to document volumetric fog in addition to volumetric lighting…. (Discuss)

Volumetric lighting is a lighting technique meant to simulate light bouncing off fog or dust particles in the air, such as a warehouse or foggy beach. It makes the player see beams of light shining from the sun or other light sources. Currently, the only Valve Valve-made software running on Source Source that supports Volumetric Lighting is Source Filmmaker Source Filmmaker, however some third-party engines incorporate volumetric lighting into env_projectedtexture. If the game you are making maps for doesn't support volumetric lighting, you can use some workarounds seen here.

Most Source 2 Source 2 games have support for Volumetric lighting by default.

Media

Volumetric lighting in Source Filmmaker
Volumetric lighting in Alien Swarm Deferred
Volumetric lighting in Portal 2: Desolation
Volumetric lighting in Half Life Alyx
Volumetric lighting in Portal 2: Community Edition

Native Support

Source Source

Game Supports
Source 2004 Source 2004
Source 2006 Source 2006
Source 2007 Source 2007
Source 2009 Source 2009/Source Multiplayer Source Multiplayer
Source 2013 Source 2013
Half-Life: Source Half-Life: Source
Day of Defeat: Source Day of Defeat: Source
Half-Life 2 Half-Life 2
Half-Life 2: Episode One Half-Life 2: Episode One
Half-Life 2: Episode Two Half-Life 2: Episode Two
Alien Swarm Alien Swarm
Alien Swarm: Reactive Drop Alien Swarm: Reactive Drop
Half-Life Deathmatch: Source Half-Life Deathmatch: Source
Half-Life 2: Deathmatch Half-Life 2: Deathmatch
Half-Life 2: Lost Coast Half-Life 2: Lost Coast
Counter-Strike: Source Counter-Strike: Source
Team Fortress 2 Team Fortress 2
Portal Portal
Left 4 Dead Left 4 Dead
Left 4 Dead 2 Left 4 Dead 2
Portal 2 Portal 2
Black Mesa Black Mesa
No
Alien Swarm Deferred Alien Swarm Deferred
Apex Legends Apex Legends
Portal 2: Desolation Portal 2: Desolation
Yes
Source Filmmaker Source Filmmaker
Strata Source Strata Source
Yes (env_projectedtexture)

Source 2 Source 2

Game Supports
Half-Life: Alyx Half-Life: Alyx Yes
Counter-Strike 2 Counter-Strike 2 Yes
S&box S&box Yes

Using models/textures to fake volumetric lighting

Using vollight_stainedglass.mdl
Model in Hammer
Model in engine
Using vol_light128x128.mdl
Model in Hammer
Model in engine
Note.pngNote:On DirectX 9, volumetric lighting on Old Engine was slightly less visible compared to using DX8 level. However, the volumetric lighting on New Engine DX9 was even less visible (or nearly invisible) compared to Old Engine's DX9. This is likely due to a bug (or changes to the lighting) on Source 2007 and later.[1][2]
Old Engine New Engine (Source 2013)
DirectX 8.1 (and earlier) Volumetric lighting on Old Engine - DirectX 8.1 (dxlevel 81) Volumetric lighting on New Engine - DirectX 8.1 (dxlevel 81)
DirectX 9.0+ Volumetric lighting on Old Engine - DirectX 9.0+ (dxlevel 95) Volumetric lighting on New Engine - DirectX 9.0+ (dxlevel 95)


References

References

See also

External links