gpu_get_tex_mip_bias


描述

With this function you can retrieve 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 can return negative values too, in which case rendered textures will be sharper over a greater distance the lower the value.


语法:

gpu_get_tex_mip_bias();


返回:

Real (default: 0)


例如:

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.