Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
车家大少爷
three.js
提交
45788c33
T
three.js
项目概览
车家大少爷
/
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,发现更多精彩内容 >>
提交
45788c33
编写于
7月 03, 2017
作者:
M
Mugen87
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Clean up
上级
f0efb9c4
变更
8
显示空白变更内容
内联
并排
Showing
8 changed file
with
13 addition
and
15 deletion
+13
-15
src/audio/Audio.js
src/audio/Audio.js
+1
-1
src/extras/ShapeUtils.js
src/extras/ShapeUtils.js
+7
-7
src/helpers/Box3Helper.js
src/helpers/Box3Helper.js
+0
-1
src/helpers/PlaneHelper.js
src/helpers/PlaneHelper.js
+0
-1
src/renderers/WebGL2Renderer.js
src/renderers/WebGL2Renderer.js
+1
-1
src/renderers/WebGLRenderer.js
src/renderers/WebGLRenderer.js
+2
-2
src/renderers/webgl/WebGLTextures.js
src/renderers/webgl/WebGLTextures.js
+1
-1
src/textures/DepthTexture.js
src/textures/DepthTexture.js
+1
-1
未找到文件。
src/audio/Audio.js
浏览文件 @
45788c33
src/extras/ShapeUtils.js
浏览文件 @
45788c33
...
...
@@ -185,7 +185,7 @@ var ShapeUtils = {
if
(
indices
)
return
vertIndices
;
return
result
;
}
}
;
}
)(),
...
...
@@ -523,7 +523,7 @@ var ShapeUtils = {
hIdx
,
nextIdx
,
intersection
;
for
(
ihIdx
=
0
;
ihIdx
<
indepHoles
.
length
;
ihIdx
++
)
{
chkHole
=
holes
[
indepHoles
[
ihIdx
]];
chkHole
=
holes
[
indepHoles
[
ihIdx
]
];
for
(
hIdx
=
0
;
hIdx
<
chkHole
.
length
;
hIdx
++
)
{
nextIdx
=
hIdx
+
1
;
nextIdx
%=
chkHole
.
length
;
...
...
@@ -556,7 +556,7 @@ var ShapeUtils = {
counter
--
;
if
(
counter
<
0
)
{
console
.
log
(
"
Infinite Loop! Holes left:
"
+
indepHoles
.
length
+
"
, Probably Hole outside Shape!
"
);
console
.
log
(
'
THREE.ShapeUtils: Infinite Loop! Holes left:" + indepHoles.length + ", Probably Hole outside Shape!
'
);
break
;
}
...
...
@@ -574,7 +574,7 @@ var ShapeUtils = {
holeIdx
=
indepHoles
[
h
];
// prevent multiple checks
cutKey
=
shapePt
.
x
+
"
:
"
+
shapePt
.
y
+
"
:
"
+
holeIdx
;
cutKey
=
shapePt
.
x
+
'
:
'
+
shapePt
.
y
+
'
:
'
+
holeIdx
;
if
(
failedCuts
[
cutKey
]
!==
undefined
)
continue
;
hole
=
holes
[
holeIdx
];
...
...
@@ -639,11 +639,11 @@ var ShapeUtils = {
for
(
i
=
0
,
il
=
allpoints
.
length
;
i
<
il
;
i
++
)
{
key
=
allpoints
[
i
].
x
+
"
:
"
+
allpoints
[
i
].
y
;
key
=
allpoints
[
i
].
x
+
'
:
'
+
allpoints
[
i
].
y
;
if
(
allPointsMap
[
key
]
!==
undefined
)
{
console
.
warn
(
"
THREE.ShapeUtils: Duplicate point
"
,
key
,
i
);
console
.
warn
(
'
THREE.ShapeUtils: Duplicate point
'
,
key
,
i
);
}
...
...
@@ -665,7 +665,7 @@ var ShapeUtils = {
for
(
f
=
0
;
f
<
3
;
f
++
)
{
key
=
face
[
f
].
x
+
"
:
"
+
face
[
f
].
y
;
key
=
face
[
f
].
x
+
'
:
'
+
face
[
f
].
y
;
index
=
allPointsMap
[
key
];
...
...
src/helpers/Box3Helper.js
浏览文件 @
45788c33
...
...
@@ -2,7 +2,6 @@
* @author WestLangley / http://github.com/WestLangley
*/
import
{
Box3
}
from
'
../math/Box3
'
;
import
{
LineSegments
}
from
'
../objects/LineSegments
'
;
import
{
LineBasicMaterial
}
from
'
../materials/LineBasicMaterial
'
;
import
{
BufferAttribute
}
from
'
../core/BufferAttribute
'
;
...
...
src/helpers/PlaneHelper.js
浏览文件 @
45788c33
...
...
@@ -2,7 +2,6 @@
* @author WestLangley / http://github.com/WestLangley
*/
import
{
Box3
}
from
'
../math/Box3
'
;
import
{
Line
}
from
'
../objects/Line
'
;
import
{
Mesh
}
from
'
../objects/Mesh
'
;
import
{
LineBasicMaterial
}
from
'
../materials/LineBasicMaterial
'
;
...
...
src/renderers/WebGL2Renderer.js
浏览文件 @
45788c33
...
...
@@ -178,7 +178,7 @@ function WebGL2Renderer( parameters ) {
setPixelRatio
:
setPixelRatio
,
setSize
:
setSize
,
render
:
render
}
}
;
}
...
...
src/renderers/WebGLRenderer.js
浏览文件 @
45788c33
...
...
@@ -459,14 +459,14 @@ function WebGLRenderer( parameters ) {
this
.
setViewport
=
function
(
x
,
y
,
width
,
height
)
{
_viewport
.
set
(
x
,
_height
-
y
-
height
,
width
,
height
)
_viewport
.
set
(
x
,
_height
-
y
-
height
,
width
,
height
)
;
state
.
viewport
(
_currentViewport
.
copy
(
_viewport
).
multiplyScalar
(
_pixelRatio
)
);
};
this
.
setScissor
=
function
(
x
,
y
,
width
,
height
)
{
_scissor
.
set
(
x
,
_height
-
y
-
height
,
width
,
height
)
_scissor
.
set
(
x
,
_height
-
y
-
height
,
width
,
height
)
;
state
.
scissor
(
_currentScissor
.
copy
(
_scissor
).
multiplyScalar
(
_pixelRatio
)
);
};
...
...
src/renderers/webgl/WebGLTextures.js
浏览文件 @
45788c33
...
...
@@ -649,7 +649,7 @@ function WebGLTextures( _gl, extensions, state, properties, capabilities, paramT
}
else
{
throw
new
Error
(
'
Unknown depthTexture format
'
)
throw
new
Error
(
'
Unknown depthTexture format
'
)
;
}
...
...
src/textures/DepthTexture.js
浏览文件 @
45788c33
...
...
@@ -12,7 +12,7 @@ function DepthTexture( width, height, type, mapping, wrapS, wrapT, magFilter, mi
if
(
format
!==
DepthFormat
&&
format
!==
DepthStencilFormat
)
{
throw
new
Error
(
'
DepthTexture format must be either THREE.DepthFormat or THREE.DepthStencilFormat
'
)
throw
new
Error
(
'
DepthTexture format must be either THREE.DepthFormat or THREE.DepthStencilFormat
'
)
;
}
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录