public void GenerateMips (RenderTexture rt);
public void GenerateMips (Rendering.RenderTargetIdentifier rt);

Parameters

rtThe render texture requiring mipmaps generation.

Description

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.