Improved Stochastic Texture Filtering Through Sample Reuse
Bartlomiej Wronski, Matt Pharr, Tomas Akenine-Möller
TL;DR
This work tackles aliasing and interpolation issues that arise when magnifying textures filtered with stochastic texture filtering (STF). By sharing texel samples across neighboring screen pixels using GPU wave intrinsics and a weighted importance sampling (WIS) estimator, the method achieves higher fidelity magnified textures without increasing texture fetch cost. Key contributions include a novel STF estimator that remains within the convex hull of texel values, sharing footprints (square and pseudorandom sparse) for cross-lane texel reuse, and blue-noise mask adaptations to support reuse patterns. The approach yields substantial PSNR gains (over 10 dB at high magnification) and improves visual quality both with and without spatiotemporal denoising, while maintaining compatibility with existing shading and compression workflows. Practical implications include better integration with neural texture compression and reduced reliance on post-processing denoisers, enabling higher-quality real-time rendering with modest per-frame overhead.
Abstract
Stochastic texture filtering (STF) has re-emerged as a technique that can bring down the cost of texture filtering of advanced texture compression methods, e.g., neural texture compression. However, during texture magnification, the swapped order of filtering and shading with STF can result in aliasing. The inability to smoothly interpolate material properties stored in textures, such as surface normals, leads to potentially undesirable appearance changes. We present a novel method to improve the quality of stochastically-filtered magnified textures and reduce the image difference compared to traditional texture filtering. When textures are magnified, nearby pixels filter similar sets of texels and we introduce techniques for sharing texel values among pixels with only a small increase in cost (0.04--0.14~ms per frame). We propose an improvement to weighted importance sampling that guarantees that our method never increases error beyond single-sample stochastic texture filtering. Under high magnification, our method has >10 dB higher PSNR than single-sample STF. Our results show greatly improved image quality both with and without spatiotemporal denoising.
