This patch enables cubic texture filtering to use mipmaps and works with anisotropic filtering.
This means less texture noise with less samples.
Instead of forcing mipmap LoD 0, this approach allows the use of mipmaps.
The main idea is that the distance between the sample points for the four linear texture samples needs to scale with the mipmap that is used.
textureQueryLod, introduced in OpenGL Shading Language Version 4.0, makes this process simpler.
| Samples | Original | Patch | Diff x8 |
| 1 | |||
| 16 | |||
| 64 | |||
| 16384 | |||
| Cycles Reference |
Comparison vs. Cycles Reference
| Samples | Original vs. Cycles Diff x8 | Patch vs. Cycles Diff x8 |
| 1 | ||
| 16 | ||
| 64 | ||
| 16384 |




















