Texture.mipMapBias Manual     Reference     Scripting  
Scripting > Runtime Classes > Texture
Texture.mipMapBias

var mipMapBias : float

Description

Mip map bias of the texture.

A positive bias makes a texture appear extra blurry, while a negative bias sharpens the texture. Note that using large negative bias can reduce performance, so it's not recommended to use more than -0.5 negative bias. In most cases better sharpening of the texture can be achieved by using anisotropic filtering.

See Also: Texture.anisoLevel, texture assets.

JavaScript
renderer.material.mainTexture.mipMapBias = 0.5;

using UnityEngine;
using System.Collections;

public class example : MonoBehaviour {
void Example() {
renderer.material.mainTexture.mipMapBias = 0.5F;
}
}

import UnityEngine
import System.Collections

class example(MonoBehaviour):

def Example():
renderer.material.mainTexture.mipMapBias = 0.5F