Browse Source

Add BoomBox model into gltf loader example

Takahiro 8 years ago
parent
commit
1a2a9a335b
1 changed files with 10 additions and 1 deletions
  1. 10 1
      examples/webgl_loader_gltf.html

+ 10 - 1
examples/webgl_loader_gltf.html

@@ -66,7 +66,8 @@
 		<a href="https://github.com/KhronosGroup/glTF" target="_blank">glTF</a> loader
 		<br>
 		monster by <a href="http://www.3drt.com/downloads.htm" target="_blank">3drt</a> - COLLADA duck by Sony -
-		Cesium models by <a href="http://cesiumjs.org/" target="_blank">Cesium</a>
+		Cesium models by <a href="http://cesiumjs.org/" target="_blank">Cesium</a> -
+		BoomBox by <a href="https://www.microsoft.com/" target="_blank">Microsoft</a>
 		</div>
 	<div id="container"></div>
 	<div id="controls">
@@ -381,6 +382,14 @@
 					addGround:true,
 					extensions: ["glTF", "glTF-MaterialsCommon", "glTF-Binary"]
 				},
+				{
+					name : "BoomBox (PBR)", url : "./models/gltf/BoomBox/%s/BoomBox.gltf",
+					cameraPos: new THREE.Vector3(2, 1, 3),
+					objectRotation: new THREE.Euler(0, Math.PI, 0),
+					addLights:true,
+					extensions: ["glTF"]
+				},
+
 				{
 					name : "Duck", url : "./models/gltf/duck/%s/duck.gltf",
 					cameraPos: new THREE.Vector3(0, 3, 5),