提交 d43357fe 编写于 作者: M Mr.doob 提交者: GitHub

Merge pull request #11192 from adrs2002/add-xfileloader

(reEdit)Add xfileloader
此差异已折叠。
......@@ -118,11 +118,11 @@
// ! If [ Texture ] was reversed Y axis, enable the following.
// THREE.XLoader.IsUvYReverse = false;
// ! And if [ Model ] was reversed X axis, enable the following.
// loader.load([' your model url ', false ], function (object) {
// ! And if [ Model ] was reversed polygons, enable the following.
// loader.load([' your model url ', true ], function (object) {
// read (download) model file
loader.load(['models/xfile/SSR06_Born2.x', true], function (object) {
loader.load(['models/xfile/SSR06_Born2.x', false], function (object) {
for (var i = 0; i < object.FrameInfo.length; i++) {
......@@ -226,7 +226,7 @@
light.position.set(10, 100, 1).normalize();
scene.add(light);
light = new THREE.DirectionalLight(0xaa5555);
light = new THREE.DirectionalLight(0x555588);
light.position.set(-1, -1, -1).normalize();
scene.add(light);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册