repo: janusweb action: commit revision: path_from: revision_from: 92f4db67244c9c8476709005fc1eaeb4c085cecd: path_to: revision_to:
commit 92f4db67244c9c8476709005fc1eaeb4c085cecd Author: James BaicoianuDate: Tue Aug 1 02:58:32 2017 -0700 Parse room pbr and ambient attributes diff --git a/scripts/room.js b/scripts/room.js
--- a/scripts/room.js
+++ b/scripts/room.js
@@ -578,6 +578,8 @@ elation.require([
if (room.server) this.properties.server = room.server;
if (room.port) this.properties.port = room.port;
if (room.rate) this.properties.rate = room.rate;
+ if (typeof room.pbr != 'undefined') this.properties.pbr = room.pbr;
+ if (typeof room.ambient != 'undefined') this.ambient = room.ambient;
this.properties.near_dist = parseFloat(room.near_dist) || 0.01;
this.properties.far_dist = parseFloat(room.far_dist) || 1000;
-----END OF PAGE-----