gpu_set_tex_mip_bias


描述

With this function you can set the mipmap bias value, where a value of 0 equals no bias, 1 equals the first mipmap, 2 equals the second mipmap etc... This controls the rate at which the mip map is swapped and will generally make rendered textures blurrier the higher the value and the greater the "distance" being viewed. Note that this function can take negative values too, in which case rendered textures will be sharper over a greater distance the lower the value.


语法:

gpu_set_tex_mip_bias(bias);


参数 描述
bias The mipmap bias value to use (default: 0)


返回:

N/A(无返回值)


例如:

if gpu_get_tex_mip_bias() != 0
    {
    gpu_set_tex_mip_bias(0);
    }

The above code will check the current mipmap bias and if it is not 0 it is set to 0.