The texture is distorted when camera is far

Hi Chris,

The aliasing you’re seeing is a Moiré pattern - https://en.wikipedia.org/wiki/Moiré_pattern

One thing that might help is changing the minFilter property of the glTF sampler. Try seeing which of the following values looks best:

  • 9984 NEAREST_MIPMAP_NEAREST
  • 9985 LINEAR_MIPMAP_NEAREST
  • 9986 NEAREST_MIPMAP_LINEAR
  • 9987 LINEAR_MIPMAP_LINEAR
    Example sampler:
{
    "samplers": [
        {
            "magFilter": 9729,
            "minFilter": 9987,
            "wrapS": 10497,
            "wrapT": 10497
        }
    ]
}