Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
车家大少爷
three.js
提交
a642a21d
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,发现更多精彩内容 >>
未验证
提交
a642a21d
编写于
7月 02, 2019
作者:
M
Michael Herzog
提交者:
GitHub
7月 02, 2019
浏览文件
操作
浏览文件
下载
差异文件
Merge pull request #16963 from Mugen87/dev34
Examples: More clean up.
上级
fac26b3c
5b4b5a2d
变更
9
隐藏空白更改
内联
并排
Showing
9 changed file
with
15 addition
and
35 deletion
+15
-35
examples/js/exporters/GLTFExporter.js
examples/js/exporters/GLTFExporter.js
+0
-2
examples/js/loaders/LDrawLoader.js
examples/js/loaders/LDrawLoader.js
+0
-2
examples/js/loaders/SVGLoader.js
examples/js/loaders/SVGLoader.js
+6
-12
examples/jsm/exporters/GLTFExporter.js
examples/jsm/exporters/GLTFExporter.js
+0
-2
examples/jsm/loaders/LDrawLoader.js
examples/jsm/loaders/LDrawLoader.js
+0
-2
examples/jsm/loaders/SVGLoader.d.ts
examples/jsm/loaders/SVGLoader.d.ts
+1
-1
examples/jsm/loaders/SVGLoader.js
examples/jsm/loaders/SVGLoader.js
+6
-12
examples/webgl_gpgpu_water.html
examples/webgl_gpgpu_water.html
+1
-1
examples/webgl_shaders_vector.html
examples/webgl_shaders_vector.html
+1
-1
未找到文件。
examples/js/exporters/GLTFExporter.js
浏览文件 @
a642a21d
...
...
@@ -2224,8 +2224,6 @@ THREE.GLTFExporter.Utils = {
}
var
mergedKeyframeIndex
=
0
;
var
sourceKeyframeIndex
=
0
;
var
sourceInterpolant
=
sourceTrack
.
createInterpolant
(
new
sourceTrack
.
ValueBufferType
(
1
)
);
mergedTrack
=
mergedTracks
[
sourceTrackNode
.
uuid
];
...
...
examples/js/loaders/LDrawLoader.js
浏览文件 @
a642a21d
...
...
@@ -1045,8 +1045,6 @@ THREE.LDrawLoader = ( function () {
// Retrieve data from the parent parse scope
var
parentParseScope
=
this
.
getParentParseScope
();
var
isRoot
=
!
parentParseScope
.
isFromParse
;
// Main colour codes passed to this subobject (or default codes 16 and 24 if it is the root object)
var
mainColourCode
=
parentParseScope
.
mainColourCode
;
var
mainEdgeColourCode
=
parentParseScope
.
mainEdgeColourCode
;
...
...
examples/js/loaders/SVGLoader.js
浏览文件 @
a642a21d
...
...
@@ -881,19 +881,15 @@ THREE.SVGLoader.prototype = {
var
transform
=
parseNodeTransform
(
node
);
if
(
transform
)
{
if
(
transformStack
.
length
>
0
)
{
if
(
transformStack
.
length
>
0
)
{
transform
.
premultiply
(
transformStack
[
transformStack
.
length
-
1
]
);
}
currentTransform
.
copy
(
transform
);
transformStack
.
push
(
transform
);
transform
.
premultiply
(
transformStack
[
transformStack
.
length
-
1
]
);
}
currentTransform
.
copy
(
transform
);
transformStack
.
push
(
transform
);
return
transform
;
}
...
...
@@ -1178,11 +1174,10 @@ THREE.SVGLoader.prototype = {
};
THREE
.
SVGLoader
.
getStrokeStyle
=
function
(
width
,
color
,
opacity
,
lineJoin
,
lineCap
,
miterLimit
)
{
THREE
.
SVGLoader
.
getStrokeStyle
=
function
(
width
,
color
,
lineJoin
,
lineCap
,
miterLimit
)
{
// Param width: Stroke width
// Param color: As returned by THREE.Color.getStyle()
// Param opacity: 0 (transparent) to 1 (opaque)
// Param lineJoin: One of "round", "bevel", "miter" or "miter-limit"
// Param lineCap: One of "round", "square" or "butt"
// Param miterLimit: Maximum join length, in multiples of the "width" parameter (join is truncated if it exceeds that distance)
...
...
@@ -1190,7 +1185,6 @@ THREE.SVGLoader.getStrokeStyle = function ( width, color, opacity, lineJoin, lin
width
=
width
!==
undefined
?
width
:
1
;
color
=
color
!==
undefined
?
color
:
'
#000
'
;
opacity
=
opacity
!==
undefined
?
opacity
:
1
;
lineJoin
=
lineJoin
!==
undefined
?
lineJoin
:
'
miter
'
;
lineCap
=
lineCap
!==
undefined
?
lineCap
:
'
butt
'
;
miterLimit
=
miterLimit
!==
undefined
?
miterLimit
:
4
;
...
...
examples/jsm/exporters/GLTFExporter.js
浏览文件 @
a642a21d
...
...
@@ -2248,8 +2248,6 @@ GLTFExporter.Utils = {
}
var
mergedKeyframeIndex
=
0
;
var
sourceKeyframeIndex
=
0
;
var
sourceInterpolant
=
sourceTrack
.
createInterpolant
(
new
sourceTrack
.
ValueBufferType
(
1
)
);
mergedTrack
=
mergedTracks
[
sourceTrackNode
.
uuid
];
...
...
examples/jsm/loaders/LDrawLoader.js
浏览文件 @
a642a21d
...
...
@@ -1063,8 +1063,6 @@ var LDrawLoader = ( function () {
// Retrieve data from the parent parse scope
var
parentParseScope
=
this
.
getParentParseScope
();
var
isRoot
=
!
parentParseScope
.
isFromParse
;
// Main colour codes passed to this subobject (or default codes 16 and 24 if it is the root object)
var
mainColourCode
=
parentParseScope
.
mainColourCode
;
var
mainEdgeColourCode
=
parentParseScope
.
mainEdgeColourCode
;
...
...
examples/jsm/loaders/SVGLoader.d.ts
浏览文件 @
a642a21d
...
...
@@ -28,7 +28,7 @@ export class SVGLoader {
parse
(
text
:
string
)
:
SVGResult
;
static
getStrokeStyle
(
width
:
number
,
color
:
string
,
opacity
:
number
,
lineJoin
:
string
,
lineCap
:
string
,
miterLimit
:
number
):
StrokeStyle
;
static
getStrokeStyle
(
width
:
number
,
color
:
string
,
lineJoin
:
string
,
lineCap
:
string
,
miterLimit
:
number
):
StrokeStyle
;
static
pointsToStroke
(
points
:
Vector3
[],
style
:
StrokeStyle
,
arcDivisions
:
number
,
minDistance
:
number
):
BufferGeometry
;
static
pointsToStrokeWithBuffers
(
points
:
Vector3
[],
style
:
StrokeStyle
,
arcDivisions
:
number
,
minDistance
:
number
,
vertices
:
number
[],
normals
:
number
[],
uvs
:
number
[],
vertexOffset
:
number
):
number
;
}
examples/jsm/loaders/SVGLoader.js
浏览文件 @
a642a21d
...
...
@@ -894,19 +894,15 @@ SVGLoader.prototype = {
var
transform
=
parseNodeTransform
(
node
);
if
(
transform
)
{
if
(
transformStack
.
length
>
0
)
{
if
(
transformStack
.
length
>
0
)
{
transform
.
premultiply
(
transformStack
[
transformStack
.
length
-
1
]
);
}
currentTransform
.
copy
(
transform
);
transformStack
.
push
(
transform
);
transform
.
premultiply
(
transformStack
[
transformStack
.
length
-
1
]
);
}
currentTransform
.
copy
(
transform
);
transformStack
.
push
(
transform
);
return
transform
;
}
...
...
@@ -1191,11 +1187,10 @@ SVGLoader.prototype = {
};
SVGLoader
.
getStrokeStyle
=
function
(
width
,
color
,
opacity
,
lineJoin
,
lineCap
,
miterLimit
)
{
SVGLoader
.
getStrokeStyle
=
function
(
width
,
color
,
lineJoin
,
lineCap
,
miterLimit
)
{
// Param width: Stroke width
// Param color: As returned by Color.getStyle()
// Param opacity: 0 (transparent) to 1 (opaque)
// Param lineJoin: One of "round", "bevel", "miter" or "miter-limit"
// Param lineCap: One of "round", "square" or "butt"
// Param miterLimit: Maximum join length, in multiples of the "width" parameter (join is truncated if it exceeds that distance)
...
...
@@ -1203,7 +1198,6 @@ SVGLoader.getStrokeStyle = function ( width, color, opacity, lineJoin, lineCap,
width
=
width
!==
undefined
?
width
:
1
;
color
=
color
!==
undefined
?
color
:
'
#000
'
;
opacity
=
opacity
!==
undefined
?
opacity
:
1
;
lineJoin
=
lineJoin
!==
undefined
?
lineJoin
:
'
miter
'
;
lineCap
=
lineCap
!==
undefined
?
lineCap
:
'
butt
'
;
miterLimit
=
miterLimit
!==
undefined
?
miterLimit
:
4
;
...
...
examples/webgl_gpgpu_water.html
浏览文件 @
a642a21d
...
...
@@ -520,7 +520,7 @@
var
x
=
i
*
128
/
WIDTH
;
var
y
=
j
*
128
/
WIDTH
;
pixels
[
p
+
0
]
=
noise
(
x
,
y
,
123.4
);
pixels
[
p
+
0
]
=
noise
(
x
,
y
);
pixels
[
p
+
1
]
=
pixels
[
p
+
0
];
pixels
[
p
+
2
]
=
0
;
pixels
[
p
+
3
]
=
1
;
...
...
examples/webgl_shaders_vector.html
浏览文件 @
a642a21d
...
...
@@ -204,7 +204,7 @@
hole
=
subshape
.
holes
[
i
];
process
=
processShape
(
hole
.
curves
,
true
);
process
=
processShape
(
hole
.
curves
);
pts
=
process
.
pts
;
pts2
=
process
.
pts2
;
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录