repo: janusweb action: commit revision: path_from: revision_from: 86cded8932a864f4391a32618e047f4e01ad626e: path_to: revision_to:
commit 86cded8932a864f4391a32618e047f4e01ad626e Author: James BaicoianuDate: Wed Nov 21 02:59:13 2018 -0800 Added mesh_uvs support diff --git a/scripts/room.js b/scripts/room.js
--- 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-----