TANGENT

Calculates the tangents for the 3rd texture coordinate set (TEXCOORD2). This way tangents can be used for model or level geometry shaders.

Range:

on - third texture coordinate set is the tangent vector.
off - no tangents.

Type:

Flag (can only be set in a definition, but not during gameplay)

Remarks:

Example:

material mat_bump3
{
   ...
   flags = TANGENT;
   ...
}

See also:

material.event, material.enable_render, material.matrix