Version: 2019.1
public void GenerateMips (RenderTexture rt);

パラメーター

rtThe render texture requiring mipmaps generation.

説明

Generate mipmap levels of a render texture.

Use this function to manually re-generate mipmap levels of a render texture. The render texture has to have mipmaps (useMipMap set to true), and automatic mip generation turned off (autoGenerateMips set to false).

On some platforms (most notably, D3D9), there is no way to manually generate render texture mip levels; in these cases this function does nothing.

See Also: useMipMap, autoGenerateMips.