three.jsaframe

How can you set anisotropy filtering value on A-Frame textures?


I am working on an A-Frame project that has small textures in the distance that are hard to see with the default three.js texture anisotropy setting of 1. How can you set this value on a texture in an A-Frame project?


Solution

  • Setting a default anisotropy value for all material textures is now a built-in A-Frame feature and can be set on the renderer component in a-scene, see https://aframe.io/docs/master/components/renderer.html#properties_anisotropy

    For example: <a-scene renderer="anisotropy: 16;">