maxAnisotropy property

int maxAnisotropy
getter/setter pair

The maximum anisotropy clamp used when sampling. The default value of 1 disables anisotropic filtering.

When greater than 1, minFilter, magFilter, and mipFilter must all be linear. Values beyond GpuContext.maxSamplerAnisotropy are clamped to it, and a maximum of 1 means the device does not support anisotropic filtering.

Anisotropic filtering samples across the mip chain, so populate mip levels (via Texture.overwrite or by rendering into them) to get the full quality benefit.

Implementation

int maxAnisotropy;