Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
Ablesons
three.js
提交
fdf31c0c
T
three.js
项目概览
Ablesons
/
three.js
与 Fork 源项目一致
从无法访问的项目Fork
通知
2
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
T
three.js
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
fdf31c0c
编写于
1月 13, 2019
作者:
G
Garrett Johnson
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Fix example module code style
上级
c07c5971
变更
5
隐藏空白更改
内联
并排
Showing
5 changed file
with
16 addition
and
11 deletion
+16
-11
examples/jsm/controls/MapControls.js
examples/jsm/controls/MapControls.js
+1
-1
examples/jsm/controls/OrbitControls.js
examples/jsm/controls/OrbitControls.js
+1
-1
examples/jsm/controls/TrackballControls.js
examples/jsm/controls/TrackballControls.js
+2
-2
examples/jsm/loaders/GLTFLoader.js
examples/jsm/loaders/GLTFLoader.js
+11
-6
examples/jsm/loaders/OBJLoader.js
examples/jsm/loaders/OBJLoader.js
+1
-1
未找到文件。
examples/jsm/controls/MapControls.js
浏览文件 @
fdf31c0c
...
...
@@ -1163,4 +1163,4 @@ Object.defineProperties( MapControls.prototype, {
}
);
export
{
MapControls
}
\ No newline at end of file
export
{
MapControls
};
examples/jsm/controls/OrbitControls.js
浏览文件 @
fdf31c0c
...
...
@@ -1059,4 +1059,4 @@ Object.defineProperties( OrbitControls.prototype, {
}
);
export
{
OrbitControls
}
\ No newline at end of file
export
{
OrbitControls
};
examples/jsm/controls/TrackballControls.js
浏览文件 @
fdf31c0c
...
...
@@ -499,7 +499,7 @@ var TrackballControls = function ( object, domElement ) {
function
touchstart
(
event
)
{
if
(
_this
.
enabled
===
false
)
return
;
event
.
preventDefault
();
switch
(
event
.
touches
.
length
)
{
...
...
@@ -625,4 +625,4 @@ var TrackballControls = function ( object, domElement ) {
TrackballControls
.
prototype
=
Object
.
create
(
EventDispatcher
.
prototype
);
TrackballControls
.
prototype
.
constructor
=
THREE
.
TrackballControls
;
export
{
TrackballControls
}
\ No newline at end of file
export
{
TrackballControls
};
examples/jsm/loaders/GLTFLoader.js
浏览文件 @
fdf31c0c
...
...
@@ -432,7 +432,7 @@ var GLTFLoader = ( function () {
case
'
directional
'
:
lightNode
=
new
DirectionalLight
(
color
);
lightNode
.
target
.
position
.
set
(
0
,
0
,
-
1
);
lightNode
.
target
.
position
.
set
(
0
,
0
,
-
1
);
lightNode
.
add
(
lightNode
.
target
);
break
;
...
...
@@ -450,7 +450,7 @@ var GLTFLoader = ( function () {
lightDef
.
spot
.
outerConeAngle
=
lightDef
.
spot
.
outerConeAngle
!==
undefined
?
lightDef
.
spot
.
outerConeAngle
:
Math
.
PI
/
4.0
;
lightNode
.
angle
=
lightDef
.
spot
.
outerConeAngle
;
lightNode
.
penumbra
=
1.0
-
lightDef
.
spot
.
innerConeAngle
/
lightDef
.
spot
.
outerConeAngle
;
lightNode
.
target
.
position
.
set
(
0
,
0
,
-
1
);
lightNode
.
target
.
position
.
set
(
0
,
0
,
-
1
);
lightNode
.
add
(
lightNode
.
target
);
break
;
...
...
@@ -1058,6 +1058,7 @@ var GLTFLoader = ( function () {
uniforms
.
refractionRatio
.
value
=
material
.
refractionRatio
;
uniforms
.
maxMipLevel
.
value
=
renderer
.
properties
.
get
(
material
.
envMap
).
__maxMipLevel
;
}
uniforms
.
specular
.
value
.
copy
(
material
.
specular
);
...
...
@@ -1450,8 +1451,10 @@ var GLTFLoader = ( function () {
var
accessor
=
target
.
POSITION
!==
undefined
?
parser
.
getDependency
(
'
accessor
'
,
target
.
POSITION
)
.
then
(
function
(
accessor
)
{
// Cloning not to pollute original accessor below
return
cloneBufferAttribute
(
accessor
);
}
)
:
geometry
.
attributes
.
position
;
...
...
@@ -1465,7 +1468,9 @@ var GLTFLoader = ( function () {
var
accessor
=
target
.
NORMAL
!==
undefined
?
parser
.
getDependency
(
'
accessor
'
,
target
.
NORMAL
)
.
then
(
function
(
accessor
)
{
return
cloneBufferAttribute
(
accessor
);
}
)
:
geometry
.
attributes
.
normal
;
...
...
@@ -1942,7 +1947,7 @@ var GLTFLoader = ( function () {
case
'
light
'
:
dependency
=
this
.
extensions
[
EXTENSIONS
.
KHR_LIGHTS_PUNCTUAL
].
loadLight
(
index
);
break
break
;
default
:
throw
new
Error
(
'
Unknown type:
'
+
type
);
...
...
@@ -3223,7 +3228,7 @@ var GLTFLoader = ( function () {
var
nodeDef
=
json
.
nodes
[
nodeIndex
];
return
(
function
()
{
return
(
function
()
{
// .isBone isn't in glTF spec. See .markDefs
if
(
nodeDef
.
isBone
===
true
)
{
...
...
@@ -3416,7 +3421,7 @@ var GLTFLoader = ( function () {
mesh
.
bind
(
new
Skeleton
(
bones
,
boneInverses
),
mesh
.
matrixWorld
);
}
;
}
return
node
;
...
...
@@ -3487,4 +3492,4 @@ var GLTFLoader = ( function () {
}
)();
export
{
GLTFLoader
}
\ No newline at end of file
export
{
GLTFLoader
};
examples/jsm/loaders/OBJLoader.js
浏览文件 @
fdf31c0c
...
...
@@ -813,4 +813,4 @@ var OBJLoader = ( function () {
}
)();
export
{
OBJLoader
}
\ No newline at end of file
export
{
OBJLoader
};
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录