diff --git a/src/hub.html b/src/hub.html index 77d38107552fb33d3a2bf495ef6c6cfc8c2cd71d..601c0d52b558e0cc62cda525bd60fe7210783d51 100644 --- a/src/hub.html +++ b/src/hub.html @@ -24,7 +24,7 @@ </audio> <a-scene - renderer="antialias: true; gammaOutput: true;" + renderer="antialias: true; gammaOutput: true; sortObjects: true; physicallyCorrectLights: true;" networked-scene="adapter: janus; audio: true; debug: true; connectOnLoad: false;" physics="gravity: -6; debug: false;" mute-mic="eventSrc: a-scene; toggleEvents: action_mute" diff --git a/src/hub.js b/src/hub.js index 88ff74b6a7eff4585e49a6d55ff2f0d4ab2646cd..592b30b01290f4cf2333adf4d69830eb478f4be6 100644 --- a/src/hub.js +++ b/src/hub.js @@ -235,7 +235,6 @@ const onReady = async () => { if (!isBotMode) { scene.classList.add("no-cursor"); } - scene.renderer.sortObjects = true; const playerRig = document.querySelector("#player-rig"); document.querySelector("canvas").classList.remove("blurred"); scene.render(); diff --git a/src/react-components/avatar-selector.js b/src/react-components/avatar-selector.js index d618f1f8862a2a1375819e60d209405bba2afe0f..0af325ceae217f3375869768d5d6a2f521d8a985 100644 --- a/src/react-components/avatar-selector.js +++ b/src/react-components/avatar-selector.js @@ -124,7 +124,7 @@ class AvatarSelector extends Component { componentDidMount() { this.scene.addEventListener("loaded", () => { - this.scene.setAttribute("renderer", { gammaOutput: true }); + this.scene.setAttribute("renderer", { gammaOutput: true, sortObjects: true, physicallyCorrectLights: true }); }); }