Tutorial: Volumetric Lighting Last edited 4 years ago2020-02-14 03:12:46 UTC

You are viewing an older revision of this wiki page. The current revision may be more detailed and up-to-date. Click here to see the current revision of this page.
✔️ Download example file

Volumetric lighting, also known as light shafts or god rays, is a lighting effect that can add depth and realism to the visuals of your map.

You can create this effect by skewing a brush to closely match the angle of your light source. The base faces are meant to be invisible, so they should be textured with CONTENTWATER in order to mirror the side faces of the brush, making it more realistic. Lastly, the brush should be an entity with Render Mode set to Additive. The translucency can be set with FX Amount (1 - 255).
User posted image
If you use NULL or BLACK_HIDDEN, not all of the side faces will be rendered at the same time, and the effect is invisible from some angles.
Volumetric light textured with BLACK_HIDDENVolumetric light textured with BLACK_HIDDEN
Volumetric light textured with CONTENTWATERVolumetric light textured with CONTENTWATER
Volumetric lighting, with and without the use of CONTENTWATERVolumetric lighting, with and without the use of CONTENTWATER
Volumetric lighting, with and without the use of CONTENTWATERVolumetric lighting, with and without the use of CONTENTWATER

List of textures for volumetric lighting

TextureGroup
FADEvalve/halflife.wad
FADE2valve/halflife.wad
CULIGHTAcstrike/cs_havana.wad
CXLIGHTAcstrike/chateau.wad

2 Comments

Commented 4 years ago2020-02-24 22:10:13 UTC Comment #102552
this could probably stand a little more info on exactly what contentwater is. I'm looking at these images and I can't really tell which is which.
Commented 4 years ago2020-02-24 22:12:49 UTC Comment #102553
The whole thing could use more explaining and less telling.

You must log in to post a comment. You can login or register a new account.