lovr.graphics.setDefaultFilter
Sets the default filter mode for new Textures. This controls how textures are sampled when they are minified, magnified, or stretched.
lovr.graphics.setDefaultFilter(mode, anisotropy)
Arguments
Name | Type | Description |
mode | FilterMode | The filter mode. |
anisotropy | number | The level of anisotropy to use. |
Returns
Nothing
Notes
The default filter is trilinear
.
The maximum supported anisotropy level can be queried using lovr.graphics.getLimits
.
See also
Texture:getFilter
Texture:setFilter
lovr.graphics.getLimits
lovr.graphics.getDefaultFilter
lovr.graphics