mip_levels
Number of mipmap levels. Increase this variable when aliasing effects on large textures in the distance are visible.
Range:
1..10 (default: 4)
Type:
var
Remarks:
-
This variable must be set before level loading.
- PCX, BMP and TGA textures of models and terrain can contain up to 4 mipmaps. If mip_levels is higher than 4, additional mipmaps are created on loading.
- DDS textures can contain an arbitrary number of mipmaps. If the number of mipmaps is higher than mip_levels, the higher mipmaps are not used. If it is lower, no additional mipmaps are created.
- If this variable is set at 1, loading sprites and non-mipmapped models is a little faster because no mipmaps are created.
Example:
function main()
{
...
mip_levels = 8; // use up to 8 mipmaps.
...
See also:
d3d_mipmapping,
mip_shaded, mip_flat, mip_sprites
► latest
version online