FilterMode
EditControls how Sampler objects smooth pixels in textures.
| Value | Description |
| nearest | A pixelated appearance where the "nearest neighbor" pixel is used. |
| linear | A smooth appearance where neighboring pixels are averaged. |
| cubic |
An even smoother appearance, but slower and typically only available on mobile GPUs. Use lovr.graphics.isFormatSupported('format', 'cubic') to check for support for a specific format, or lovr.graphics.getFeatures().cubic to see if cubic filtering is supported at all.
Note that this can only be used for min and mag options in sampler. Trying to use this for the mip filter mode will silently fall back to linear.
|