Pass:mipmap
EditGenerates mipmaps for a texture. This can only be called on a transfer pass, which can be created with lovr.graphics.getPass
.
When rendering to textures with a render pass, it's also possible to automatically regenerate mipmaps after rendering by adding the mipmaps
flag when creating the pass.
Pass:mipmap(texture, base, count)
Arguments
Name | Type | Default | Description |
texture | Texture | The texture to mipmap. | |
base | number | 1 | The index of the mipmap used to generate the remaining mipmaps. |
count | number | nil | The number of mipmaps to generate. If nil, generates the remaining mipmaps. |
Returns
Nothing