English
Appearance
English
Appearance
Related reference: Scene API / Rendering and Materials
Anisotropy is mainly used to improve texture clarity when viewed at oblique angles. Typical cases include:
await api.setAnisotropy(obj, 8);await api.setAnisotropy(target, num, mapType, recursive);target: the target objectnum: the anisotropy value, usually a power of twomapType: the texture field name, default is maprecursive: whether the change should also apply to child nodes, default is falseawait api.setAnisotropy(model, 16, 'map', true);await api.setAnisotropy(model, 8, 'normalMap', true);A good starting point is usually 4, 8, or 16.