From d4e494ee5aa7c59b6f1e14ac978a7614dbcd215f Mon Sep 17 00:00:00 2001 From: angelcabrera-nr <73490994+angelcabrera-nr@users.noreply.github.com> Date: Tue, 18 Apr 2023 13:27:44 -0400 Subject: [PATCH] Fix: EnvironmentMap not updating after changing scene --- src/components/skybox.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/components/skybox.js b/src/components/skybox.js index 1df4aa87f9..98361b8971 100644 --- a/src/components/skybox.js +++ b/src/components/skybox.js @@ -475,8 +475,7 @@ AFRAME.registerComponent("skybox", { this.el.setObject3D("light-probe", this.sky.generateLightProbe(this.el.sceneEl.renderer)); } - // TODO if we care about dynamic skybox changes we should also update the enviornment map here - // + this.el.sceneEl.object3D.environment = this.sky.generateEnvironmentMap(this.el.sceneEl.renderer); }, remove() {