From b717bf7ecec73c17600f81f05ac16aa4ba22b0be Mon Sep 17 00:00:00 2001 From: Will Eastcott Date: Thu, 21 Nov 2024 16:11:04 +0000 Subject: [PATCH] Set anisotropy for cubemap --- src/sky.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/sky.ts b/src/sky.ts index 2646a80..0a04e53 100644 --- a/src/sky.ts +++ b/src/sky.ts @@ -39,9 +39,9 @@ class SkyElement extends AsyncElement { if (!this._scene) return; const source = asset.resource as Texture; - source.anisotropy = 4; const skybox = EnvLighting.generateSkyboxCubemap(source); + skybox.anisotropy = 4; this._scene.skybox = skybox; if (this._lighting) {