Lightgrid

From Blood Wiki
(Difference between revisions)
Jump to: navigation, search
(Created page with "Lightgrid or volumeric lighting - a data structure used to store static lighting for models. Lightgrid are created during LIGHT phase each time map is compiled. Each cell of ...")

Revision as of 11:44, 24 July 2012

Lightgrid or volumeric lighting - a data structure used to store static lighting for models. Lightgrid are created during LIGHT phase each time map is compiled.

Each cell of lightgrid stores this information:

  • Ambient light RGB
  • Diffuse light RGB
  • Diffuse light vector

When rendered, model sample it's position at lightgrid and find average ambient and diffuse lighting to be applied during shading.

Default lightgrid cell size in game units is '64 64 128'. It can be customized with "gridsize" worldspawn key. Most of Blood Omnicide maps using lightgrid size '32 32 32' or '32 32 64'.

Personal tools
Namespaces

Variants
Actions
Navigation
Toolbox