d3d_lines

This variable can be used to highlight meshes, bounding boxes, and shaders in the level, for testing purposes.

Range:

0 - Normal mode (default).
1 - Display the meshes of blocks, terrains, decals, and entity bounding boxes.
2 - Remove the first texture of all shaders when dynamic lights are in range. This makes normalmapping effects better visible.
3 - Both.

Type:

var

Remarks:

Pressing [F11] twice when default.c is included will set d3d_lines to 3.

Example:

function toggle_lines()
{
  if (!d3d_lines) 
    d3d_lines = 3; // display everything
  else
    d3d_lines = 0; // normal mode
}


function main()
{
  ...
  on_x = toggle_lines;

See also:

Debugging ► latest version online