repo: janusweb
action: commit
revision: 
path_from: 
revision_from: 92f4db67244c9c8476709005fc1eaeb4c085cecd:
path_to: 
revision_to: 
git.thebackupbox.net
janusweb
git clone git://git.thebackupbox.net/janusweb
commit 92f4db67244c9c8476709005fc1eaeb4c085cecd
Author: James Baicoianu 
Date:   Tue Aug 1 02:58:32 2017 -0700

    Parse room pbr and ambient attributes

diff --git a/scripts/room.js b/scripts/room.js
index be2e71c73dfcc5122aeb1541eddee41a6f5c01ee..
index ..4111d8357a55259f7270102c28191fd1795f5d8a 100644
--- 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-----