repo: janusweb action: commit revision: path_from: revision_from: 2761b2aa9da3ce583dace4246d9010ace8e47ee3: path_to: revision_to:
commit 2761b2aa9da3ce583dace4246d9010ace8e47ee3 Author: James BaicoianuDate: Sun Feb 6 16:55:58 2022 -0800 Equirectangular skybox fix diff --git a/scripts/external/JanusFireboxParser.js b/scripts/external/JanusFireboxParser.js
--- a/scripts/external/JanusFireboxParser.js
+++ b/scripts/external/JanusFireboxParser.js
@@ -83,6 +83,7 @@ JanusFireboxParser.prototype.parseAssets = function(xml, baseurl, datapath) {
flipy: n.flipy,
reverse3d: n.reverse3d,
tex_linear: n.tex_linear,
+ equi: n.equi,
});
});
videoassets.forEach(function(n) {
diff --git a/scripts/room.js b/scripts/room.js
--- a/scripts/room.js
+++ b/scripts/room.js
@@ -306,6 +306,7 @@ elation.require([
let equi = this.getAsset('image', this.skybox_equi);
elation.events.add(equi, 'asset_load', ev => {
this.skyboxtexture = ev.target._texture;
+ this.skyboxtexture.mapping = THREE.EquirectangularReflectionMapping;
if (this.janus.currentroom === this) {
this.skyboxobj.setTexture(this.skyboxtexture);
}
-----END OF PAGE-----