repo: janusweb
action: commit
revision: 
path_from: 
revision_from: 86cded8932a864f4391a32618e047f4e01ad626e:
path_to: 
revision_to: 
git.thebackupbox.net
janusweb
git clone git://git.thebackupbox.net/janusweb
commit 86cded8932a864f4391a32618e047f4e01ad626e
Author: James Baicoianu 
Date:   Wed Nov 21 02:59:13 2018 -0800

    Added mesh_uvs support

diff --git a/scripts/room.js b/scripts/room.js
index 1334f502609afca2ee1f8c803dc002261cc60a3f..
index ..214c4901e7e30c9bd0647c25eba6f380ecc5bfcf 100644
--- a/scripts/room.js
+++ b/scripts/room.js
@@ -1172,6 +1172,9 @@ elation.require([
           if (args.mesh_normals) {
             geo.addAttribute( 'normal', new THREE.Float32BufferAttribute( args.mesh_normals, 3 ) );
           }
+          if (args.mesh_uvs) {
+            geo.addAttribute( 'uv', new THREE.Float32BufferAttribute( args.mesh_uvs, 2 ) );
+          }
           object = new THREE.Mesh(geo, new THREE.MeshPhongMaterial());
         }
         assetlist.push({

-----END OF PAGE-----