Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
Ablesons
three.js
提交
8213851a
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,发现更多精彩内容 >>
提交
8213851a
编写于
11月 10, 2017
作者:
M
Mugen87
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Clean up
上级
ae497bf8
变更
4
隐藏空白更改
内联
并排
Showing
4 changed file
with
13 addition
and
13 deletion
+13
-13
examples/js/QuickHull.js
examples/js/QuickHull.js
+1
-1
examples/js/loaders/ColladaLoader.js
examples/js/loaders/ColladaLoader.js
+1
-1
examples/js/loaders/GLTFLoader.js
examples/js/loaders/GLTFLoader.js
+9
-9
src/renderers/WebGLRenderer.js
src/renderers/WebGLRenderer.js
+2
-2
未找到文件。
examples/js/QuickHull.js
浏览文件 @
8213851a
...
...
@@ -470,7 +470,7 @@
// 3. The next vertex 'v3' is the one farthest to the plane 'v0', 'v1', 'v2'
maxDistance
=
-
1
;
maxDistance
=
-
1
;
plane
.
setFromCoplanarPoints
(
v0
.
point
,
v1
.
point
,
v2
.
point
);
for
(
i
=
0
,
l
=
this
.
vertices
.
length
;
i
<
l
;
i
++
)
{
...
...
examples/js/loaders/ColladaLoader.js
浏览文件 @
8213851a
...
...
@@ -1759,7 +1759,7 @@ THREE.ColladaLoader.prototype = {
};
var
mesh
=
getElementsByTagName
(
xml
,
'
mesh
'
)[
0
];
// the following tags inside geometry are not supported yet (see https://github.com/mrdoob/three.js/pull/12606): convex_mesh, spline, brep
if
(
mesh
===
undefined
)
return
;
...
...
examples/js/loaders/GLTFLoader.js
浏览文件 @
8213851a
...
...
@@ -800,12 +800,12 @@ THREE.GLTFLoader = ( function () {
}
else
{
// <= r87. Remove when reasonable.
// <= r87. Remove when reasonable.
offset
=
uvScaleMap
.
offset
;
repeat
=
uvScaleMap
.
repeat
;
offset
=
uvScaleMap
.
offset
;
repeat
=
uvScaleMap
.
repeat
;
uniforms
.
offsetRepeat
.
value
.
set
(
offset
.
x
,
offset
.
y
,
repeat
.
x
,
repeat
.
y
);
uniforms
.
offsetRepeat
.
value
.
set
(
offset
.
x
,
offset
.
y
,
repeat
.
x
,
repeat
.
y
);
}
...
...
@@ -2067,7 +2067,7 @@ THREE.GLTFLoader = ( function () {
}
else
if
(
cameraDef
.
type
===
'
orthographic
'
)
{
camera
=
new
THREE
.
OrthographicCamera
(
params
.
xmag
/
-
2
,
params
.
xmag
/
2
,
params
.
ymag
/
2
,
params
.
ymag
/
-
2
,
params
.
znear
,
params
.
zfar
);
camera
=
new
THREE
.
OrthographicCamera
(
params
.
xmag
/
-
2
,
params
.
xmag
/
2
,
params
.
ymag
/
2
,
params
.
ymag
/
-
2
,
params
.
znear
,
params
.
zfar
);
}
...
...
@@ -2242,7 +2242,7 @@ THREE.GLTFLoader = ( function () {
// Nothing in the node definition indicates whether it is a Bone or an
// Object3D. Use the skins' joint references to mark bones.
for
(
var
skinIndex
=
0
;
skinIndex
<
skins
.
length
;
skinIndex
++
)
{
for
(
var
skinIndex
=
0
;
skinIndex
<
skins
.
length
;
skinIndex
++
)
{
var
joints
=
skins
[
skinIndex
].
joints
;
...
...
@@ -2259,7 +2259,7 @@ THREE.GLTFLoader = ( function () {
// references and rename instances below.
//
// Example: CesiumMilkTruck sample model reuses "Wheel" meshes.
for
(
var
nodeIndex
=
0
;
nodeIndex
<
nodes
.
length
;
nodeIndex
++
)
{
for
(
var
nodeIndex
=
0
;
nodeIndex
<
nodes
.
length
;
nodeIndex
++
)
{
var
nodeDef
=
nodes
[
nodeIndex
];
...
...
@@ -2271,7 +2271,7 @@ THREE.GLTFLoader = ( function () {
}
meshReferences
[
nodeDef
.
mesh
]
++
;
meshReferences
[
nodeDef
.
mesh
]
++
;
}
...
...
@@ -2297,7 +2297,7 @@ THREE.GLTFLoader = ( function () {
if
(
meshReferences
[
nodeDef
.
mesh
]
>
1
)
{
mesh
.
name
+=
'
_instance_
'
+
meshUses
[
nodeDef
.
mesh
]
++
;
mesh
.
name
+=
'
_instance_
'
+
meshUses
[
nodeDef
.
mesh
]
++
;
}
...
...
src/renderers/WebGLRenderer.js
浏览文件 @
8213851a
...
...
@@ -1026,7 +1026,7 @@ function WebGLRenderer( parameters ) {
if
(
isAnimating
)
return
;
var
device
=
vr
.
getDevice
();
if
(
device
&&
device
.
isPresenting
)
{
device
.
requestAnimationFrame
(
loop
);
...
...
@@ -1046,7 +1046,7 @@ function WebGLRenderer( parameters ) {
if
(
onAnimationFrame
!==
null
)
onAnimationFrame
(
time
);
var
device
=
vr
.
getDevice
();
if
(
device
&&
device
.
isPresenting
)
{
device
.
requestAnimationFrame
(
loop
);
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录