Skip to content

Commit

Permalink
Set anisotropy for cubemap
Browse files Browse the repository at this point in the history
  • Loading branch information
willeastcott committed Nov 21, 2024
1 parent 4f189ff commit b717bf7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/sky.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit b717bf7

Please sign in to comment.