Hello,
Is it possible to define the texture mipmap generation distance ?
Thanks !
Hello,
Is it possible to define the texture mipmap generation distance ?
Thanks !
The mipmap is visible whenever it is necessary. Modifying that distance wouldn’t change anything, or would even introduce artifacts.
Texture is displayed closer/larger than 1:1 (=more than one pixel per texel): Mipmaps are not in use.
Texture is displayed farther away/smaller than 1:1 (=more than one texel per pixel): Mipmaps are in use, and the correct required mipmap level is automatically chosen, depending on the texel/pixel ratio. Note your interpolation will be incorrect unless you also set the filter mode to “Trilinear”.
UPDATE: in a more recent Unity-Version (tested: 5.5) they added the parameter Texture.mipMapBias, which can override the value of which mipmap level will be accessed, and therefore does exactly what you want.
In fact, as the default setting indeed resulty in overly blurry textures, Unity’s computation might be incorrect, and a value like -0.5 might be the “correct” choice.
Note the mipMapBias value can only be adjusted via script, is not persistent between Editor sessions, but IS persistent between different Play sessions in the Editor (=as long as the Editor is open).