lod

Determines the LOD offset of the material effect, just like effect_lod, but for the specific material only. The given value adds to the current LOD step of the model or block; if the result is 4 or above, the object is rendered without shader. This is a faster way to suppress shaders than using a dummy _lod technique. By setting this variable to 4, the shader can be temporarily switched off. A7.82

Range

0 .. 3 (default: 0)

Type:

var

Example:

function main()
{
  mtl_animTree.lod = 3; // tree wind animation only for close trees 
  ...

See also:

VIEW, LOD, NOLOD, LOD0/1, d3d_lodfactor, shadow_lod, effect_lod, view.lod

► latest version online