提交 edb5771d 编写于 作者: D Don McCurdy

Create GLTF2Loader fork.

上级 f8c7f708
......@@ -23,10 +23,6 @@
When using custom shaders provided within a glTF file [page:THREE.GLTFLoader.Shaders] should be updated on each render loop. See [example:webgl_loader_gltf] demo source code for example usage.
</div>
<div>
This class is often used with [page:THREE.GLTFLoader.Animations THREE.GLTFLoader.Animations] to animate parsed animations. See [example:webgl_loader_gltf] demo source code for example usage.
</div>
<h2>Example</h2>
<code>
......@@ -45,7 +41,7 @@
</code>
[example:webgl_loader_gltf]
<h2>Constructor</h2>
<h3>[name]( [page:LoadingManager manager] )</h3>
......
此差异已折叠。
......@@ -95,7 +95,7 @@
</div>
<script src="../build/three.js"></script>
<script src="js/controls/OrbitControls.js"></script>
<script src="js/loaders/GLTFLoader.js"></script>
<script src="js/loaders/GLTF2Loader.js"></script>
<script>
var orbitControls = null;
......@@ -202,8 +202,8 @@
scene.add(ground);
}
THREE.GLTFLoader.Shaders.removeAll(); // remove all previous shaders
loader = new THREE.GLTFLoader;
THREE.GLTF2Loader.Shaders.removeAll(); // remove all previous shaders
loader = new THREE.GLTF2Loader;
for (var i = 0; i < extensionSelect.children.length; i++) {
var child = extensionSelect.children[i];
......@@ -338,7 +338,7 @@
function animate() {
requestAnimationFrame( animate );
if (mixer) mixer.update(clock.getDelta());
THREE.GLTFLoader.Shaders.update(scene, camera);
THREE.GLTF2Loader.Shaders.update(scene, camera);
if (cameraIndex == 0)
orbitControls.update();
render();
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册