Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
Ablesons
three.js
提交
1ffd2e95
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,发现更多精彩内容 >>
提交
1ffd2e95
编写于
3月 17, 2018
作者:
M
Mugen87
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Examples: Clean up
上级
bb4398b2
变更
6
隐藏空白更改
内联
并排
Showing
6 changed file
with
1 addition
and
666 deletion
+1
-666
examples/software_lines_colors.html
examples/software_lines_colors.html
+0
-219
examples/software_lines_cubes.html
examples/software_lines_cubes.html
+0
-209
examples/software_lines_sphere.html
examples/software_lines_sphere.html
+0
-226
examples/software_lines_splines.html
examples/software_lines_splines.html
+0
-3
examples/svg_lines.html
examples/svg_lines.html
+0
-3
examples/svg_sandbox.html
examples/svg_sandbox.html
+1
-6
未找到文件。
examples/software_lines_colors.html
已删除
100644 → 0
浏览文件 @
bb4398b2
<!DOCTYPE html>
<html
lang=
"en"
>
<head>
<title>
three.js software - lines - cubes - colors
</title>
<meta
charset=
"utf-8"
>
<meta
name=
"viewport"
content=
"width=device-width, user-scalable=no, minimum-scale=1.0, maximum-scale=1.0"
>
<style>
body
{
background-color
:
#000000
;
margin
:
0px
;
overflow
:
hidden
;
}
a
{
color
:
#0078ff
;
}
#info
{
position
:
absolute
;
top
:
10px
;
width
:
100%
;
color
:
#ffffff
;
padding
:
5px
;
font-family
:
Monospace
;
font-size
:
13px
;
text-align
:
center
;
z-index
:
100
;
}
a
{
color
:
orange
;
text-decoration
:
none
;
}
a
:hover
{
color
:
#0080ff
;
}
</style>
</head>
<body>
<div
id=
"info"
>
<a
href=
"http://threejs.org"
target=
"_blank"
rel=
"noopener"
>
three.js
</a>
- color lines Software demo
[
<a
href=
"http://en.wikipedia.org/wiki/Hilbert_curve"
>
Hilbert curve
</a>
thanks to
<a
href=
"http://www.openprocessing.org/visuals/?visualID=15599"
>
Thomas Diewald
</a>
]
</div>
<script
src=
"../build/three.js"
></script>
<script
src=
"js/geometries/hilbert3D.js"
></script>
<script
src=
"js/Detector.js"
></script>
<script
src=
"js/libs/stats.min.js"
></script>
<script
src=
"js/renderers/Projector.js"
></script>
<script
src=
"js/renderers/SoftwareRenderer.js"
></script>
<script>
var
mouseX
=
0
,
mouseY
=
0
,
windowHalfX
=
window
.
innerWidth
/
2
,
windowHalfY
=
window
.
innerHeight
/
2
,
camera
,
scene
,
renderer
,
material
;
init
();
animate
();
function
init
()
{
var
i
,
container
;
container
=
document
.
createElement
(
'
div
'
);
document
.
body
.
appendChild
(
container
);
camera
=
new
THREE
.
PerspectiveCamera
(
33
,
window
.
innerWidth
/
window
.
innerHeight
,
1
,
10000
);
camera
.
position
.
z
=
700
;
scene
=
new
THREE
.
Scene
();
renderer
=
new
THREE
.
SoftwareRenderer
();
renderer
.
setSize
(
window
.
innerWidth
,
window
.
innerHeight
);
container
.
appendChild
(
renderer
.
domElement
);
var
geometry
=
new
THREE
.
Geometry
(),
geometry2
=
new
THREE
.
Geometry
(),
geometry3
=
new
THREE
.
Geometry
(),
points
=
hilbert3D
(
new
THREE
.
Vector3
(
0
,
0
,
0
),
200.0
,
2
,
0
,
1
,
2
,
3
,
4
,
5
,
6
,
7
),
colors
=
[],
colors2
=
[],
colors3
=
[];
for
(
i
=
0
;
i
<
points
.
length
;
i
++
)
{
geometry
.
vertices
.
push
(
points
[
i
]
);
colors
[
i
]
=
new
THREE
.
Color
(
0xffffff
);
colors
[
i
].
setHSL
(
0.6
,
1.0
,
Math
.
max
(
0
,
(
200
-
points
[
i
].
x
)
/
400
)
*
0.5
+
0.5
);
colors2
[
i
]
=
new
THREE
.
Color
(
0xffffff
);
colors2
[
i
].
setHSL
(
0.3
,
1.0
,
Math
.
max
(
0
,
(
200
+
points
[
i
].
x
)
/
400
)
*
0.5
);
colors3
[
i
]
=
new
THREE
.
Color
(
0xffffff
);
colors3
[
i
].
setHSL
(
i
/
points
.
length
,
1.0
,
0.5
);
}
geometry2
.
vertices
=
geometry3
.
vertices
=
geometry
.
vertices
;
geometry
.
colors
=
colors
;
geometry2
.
colors
=
colors2
;
geometry3
.
colors
=
colors3
;
// lines
material
=
new
THREE
.
LineBasicMaterial
(
{
color
:
0xffffff
,
opacity
:
1
,
linewidth
:
3
,
vertexColors
:
THREE
.
VertexColors
}
);
var
line
,
p
,
scale
=
0.3
,
d
=
225
;
var
parameters
=
[
[
material
,
scale
*
1.5
,
[
-
d
,
0
,
0
],
geometry
],
[
material
,
scale
*
1.5
,
[
0
,
0
,
0
],
geometry2
],
[
material
,
scale
*
1.5
,
[
d
,
0
,
0
],
geometry3
]
];
for
(
i
=
0
;
i
<
parameters
.
length
;
++
i
)
{
p
=
parameters
[
i
];
line
=
new
THREE
.
Line
(
p
[
3
],
p
[
0
]
);
line
.
scale
.
x
=
line
.
scale
.
y
=
line
.
scale
.
z
=
p
[
1
];
line
.
position
.
x
=
p
[
2
][
0
];
line
.
position
.
y
=
p
[
2
][
1
];
line
.
position
.
z
=
p
[
2
][
2
];
scene
.
add
(
line
);
}
stats
=
new
Stats
();
document
.
addEventListener
(
'
mousemove
'
,
onDocumentMouseMove
,
false
);
document
.
addEventListener
(
'
touchstart
'
,
onDocumentTouchStart
,
false
);
document
.
addEventListener
(
'
touchmove
'
,
onDocumentTouchMove
,
false
);
window
.
addEventListener
(
'
resize
'
,
onWindowResize
,
false
);
}
function
onWindowResize
()
{
windowHalfX
=
window
.
innerWidth
/
2
;
windowHalfY
=
window
.
innerHeight
/
2
;
camera
.
aspect
=
window
.
innerWidth
/
window
.
innerHeight
;
camera
.
updateProjectionMatrix
();
renderer
.
setSize
(
window
.
innerWidth
,
window
.
innerHeight
);
}
function
onDocumentMouseMove
(
event
)
{
mouseX
=
event
.
clientX
-
windowHalfX
;
mouseY
=
event
.
clientY
-
windowHalfY
;
}
function
onDocumentTouchStart
(
event
)
{
if
(
event
.
touches
.
length
>
1
)
{
event
.
preventDefault
();
mouseX
=
event
.
touches
[
0
].
pageX
-
windowHalfX
;
mouseY
=
event
.
touches
[
0
].
pageY
-
windowHalfY
;
}
}
function
onDocumentTouchMove
(
event
)
{
if
(
event
.
touches
.
length
==
1
)
{
event
.
preventDefault
();
mouseX
=
event
.
touches
[
0
].
pageX
-
windowHalfX
;
mouseY
=
event
.
touches
[
0
].
pageY
-
windowHalfY
;
}
}
function
animate
()
{
requestAnimationFrame
(
animate
);
render
();
stats
.
update
();
}
function
render
()
{
camera
.
position
.
x
+=
(
mouseX
-
camera
.
position
.
x
)
*
.
05
;
camera
.
position
.
y
+=
(
-
mouseY
+
200
-
camera
.
position
.
y
)
*
.
05
;
camera
.
lookAt
(
scene
.
position
);
var
time
=
Date
.
now
()
*
0.0005
;
for
(
var
i
=
0
;
i
<
scene
.
children
.
length
;
i
++
)
{
var
object
=
scene
.
children
[
i
];
if
(
object
instanceof
THREE
.
Line
)
object
.
rotation
.
y
=
time
*
(
i
%
2
?
1
:
-
1
);
}
renderer
.
render
(
scene
,
camera
);
}
</script>
</body>
</html>
examples/software_lines_cubes.html
已删除
100644 → 0
浏览文件 @
bb4398b2
<!DOCTYPE html>
<html
lang=
"en"
>
<head>
<title>
three.js software - lines - cubes
</title>
<meta
charset=
"utf-8"
>
<meta
name=
"viewport"
content=
"width=device-width, user-scalable=no, minimum-scale=1.0, maximum-scale=1.0"
>
<style>
body
{
background-color
:
#000000
;
margin
:
0px
;
overflow
:
hidden
;
}
a
{
color
:
#0078ff
;
}
#info
{
position
:
absolute
;
top
:
10px
;
width
:
100%
;
color
:
#ffffff
;
padding
:
5px
;
font-family
:
Monospace
;
font-size
:
13px
;
text-align
:
center
;
z-index
:
100
;
}
a
{
color
:
orange
;
text-decoration
:
none
;
}
a
:hover
{
color
:
#0080ff
;
}
</style>
</head>
<body>
<div
id=
"info"
>
<a
href=
"http://threejs.org"
target=
"_blank"
rel=
"noopener"
>
three.js
</a>
- lines WebGL demo
[
<a
href=
"http://en.wikipedia.org/wiki/Hilbert_curve"
>
Hilbert curve
</a>
thanks to
<a
href=
"http://www.openprocessing.org/visuals/?visualID=15599"
>
Thomas Diewald
</a>
]
</div>
<script
src=
"../build/three.js"
></script>
<script
src=
"js/geometries/hilbert3D.js"
></script>
<script
src=
"js/Detector.js"
></script>
<script
src=
"js/libs/stats.min.js"
></script>
<script
src=
"js/renderers/Projector.js"
></script>
<script
src=
"js/renderers/SoftwareRenderer.js"
></script>
<script>
if
(
!
Detector
.
webgl
)
Detector
.
addGetWebGLMessage
();
var
mouseX
=
0
,
mouseY
=
0
,
windowHalfX
=
window
.
innerWidth
/
2
,
windowHalfY
=
window
.
innerHeight
/
2
,
camera
,
scene
,
renderer
;
init
();
animate
();
function
init
()
{
var
i
,
material
,
container
;
container
=
document
.
createElement
(
'
div
'
);
document
.
body
.
appendChild
(
container
);
camera
=
new
THREE
.
PerspectiveCamera
(
33
,
window
.
innerWidth
/
window
.
innerHeight
,
1
,
10000
);
camera
.
position
.
z
=
700
;
scene
=
new
THREE
.
Scene
();
renderer
=
new
THREE
.
SoftwareRenderer
();
renderer
.
setSize
(
window
.
innerWidth
,
window
.
innerHeight
);
container
.
appendChild
(
renderer
.
domElement
);
var
geometry
=
new
THREE
.
Geometry
(),
points
=
hilbert3D
(
new
THREE
.
Vector3
(
0
,
0
,
0
),
200.0
,
4
,
0
,
1
,
2
,
3
,
4
,
5
,
6
,
7
);
for
(
i
=
0
;
i
<
points
.
length
;
i
++
)
{
geometry
.
vertices
.
push
(
points
[
i
]
);
}
// lines
var
line
,
p
,
scale
=
0.3
,
d
=
125
,
c1
=
0x553300
,
c2
=
0x555555
,
c3
=
0x992800
,
g1
=
geometry
,
m1
=
new
THREE
.
LineBasicMaterial
(
{
color
:
c1
,
opacity
:
1
,
blending
:
THREE
.
AdditiveBlending
,
transparent
:
true
}
),
m2
=
new
THREE
.
LineBasicMaterial
(
{
color
:
c2
,
opacity
:
1
,
blending
:
THREE
.
AdditiveBlending
,
transparent
:
true
}
),
m3
=
new
THREE
.
LineBasicMaterial
(
{
color
:
c3
,
opacity
:
1
,
blending
:
THREE
.
AdditiveBlending
,
transparent
:
true
}
),
parameters
=
[
[
m3
,
scale
*
0.5
,
[
0
,
0
,
0
],
g1
],
[
m2
,
scale
*
0.5
,
[
d
,
0
,
0
],
g1
],
[
m2
,
scale
*
0.5
,
[
-
d
,
0
,
0
],
g1
],
[
m2
,
scale
*
0.5
,
[
0
,
d
,
0
],
g1
],
[
m2
,
scale
*
0.5
,
[
d
,
d
,
0
],
g1
],
[
m2
,
scale
*
0.5
,
[
-
d
,
d
,
0
],
g1
],
[
m2
,
scale
*
0.5
,
[
0
,
-
d
,
0
],
g1
],
[
m2
,
scale
*
0.5
,
[
d
,
-
d
,
0
],
g1
],
[
m2
,
scale
*
0.5
,
[
-
d
,
-
d
,
0
],
g1
],
[
m1
,
scale
*
0.5
,
[
2
*
d
,
0
,
0
],
g1
],
[
m1
,
scale
*
0.5
,
[
-
2
*
d
,
0
,
0
],
g1
],
[
m1
,
scale
*
0.5
,
[
2
*
d
,
d
,
0
],
g1
],
[
m1
,
scale
*
0.5
,
[
-
2
*
d
,
d
,
0
],
g1
],
[
m1
,
scale
*
0.5
,
[
2
*
d
,
-
d
,
0
],
g1
],
[
m1
,
scale
*
0.5
,
[
-
2
*
d
,
-
d
,
0
],
g1
]];
for
(
i
=
0
;
i
<
parameters
.
length
;
i
++
)
{
p
=
parameters
[
i
];
line
=
new
THREE
.
Line
(
p
[
3
],
p
[
0
]
);
line
.
scale
.
x
=
line
.
scale
.
y
=
line
.
scale
.
z
=
p
[
1
];
line
.
position
.
x
=
p
[
2
][
0
];
line
.
position
.
y
=
p
[
2
][
1
];
line
.
position
.
z
=
p
[
2
][
2
];
scene
.
add
(
line
);
}
document
.
addEventListener
(
'
mousemove
'
,
onDocumentMouseMove
,
false
);
document
.
addEventListener
(
'
touchstart
'
,
onDocumentTouchStart
,
false
);
document
.
addEventListener
(
'
touchmove
'
,
onDocumentTouchMove
,
false
);
window
.
addEventListener
(
'
resize
'
,
onWindowResize
,
false
);
}
function
onWindowResize
()
{
windowHalfX
=
window
.
innerWidth
/
2
;
windowHalfY
=
window
.
innerHeight
/
2
;
camera
.
aspect
=
window
.
innerWidth
/
window
.
innerHeight
;
camera
.
updateProjectionMatrix
();
renderer
.
setSize
(
window
.
innerWidth
,
window
.
innerHeight
);
}
function
onDocumentMouseMove
(
event
)
{
mouseX
=
event
.
clientX
-
windowHalfX
;
mouseY
=
event
.
clientY
-
windowHalfY
;
}
function
onDocumentTouchStart
(
event
)
{
if
(
event
.
touches
.
length
>
1
)
{
event
.
preventDefault
();
mouseX
=
event
.
touches
[
0
].
pageX
-
windowHalfX
;
mouseY
=
event
.
touches
[
0
].
pageY
-
windowHalfY
;
}
}
function
onDocumentTouchMove
(
event
)
{
if
(
event
.
touches
.
length
==
1
)
{
event
.
preventDefault
();
mouseX
=
event
.
touches
[
0
].
pageX
-
windowHalfX
;
mouseY
=
event
.
touches
[
0
].
pageY
-
windowHalfY
;
}
}
function
animate
()
{
requestAnimationFrame
(
animate
);
render
();
}
function
render
()
{
camera
.
position
.
x
+=
(
mouseX
-
camera
.
position
.
x
)
*
.
05
;
camera
.
position
.
y
+=
(
-
mouseY
+
200
-
camera
.
position
.
y
)
*
.
05
;
camera
.
lookAt
(
scene
.
position
);
var
time
=
Date
.
now
()
*
0.0015
;
for
(
var
i
=
0
;
i
<
scene
.
children
.
length
;
i
++
)
{
var
object
=
scene
.
children
[
i
];
if
(
object
instanceof
THREE
.
Line
)
object
.
rotation
.
y
=
time
*
(
i
%
2
?
1
:
-
1
);
}
renderer
.
render
(
scene
,
camera
);
}
</script>
</body>
</html>
examples/software_lines_sphere.html
已删除
100644 → 0
浏览文件 @
bb4398b2
<!DOCTYPE html>
<html
lang=
"en"
>
<head>
<title>
three.js software - lines - spheres
</title>
<meta
charset=
"utf-8"
>
<meta
name=
"viewport"
content=
"width=device-width, user-scalable=no, minimum-scale=1.0, maximum-scale=1.0"
>
<style>
body
{
background-color
:
#000
;
margin
:
0px
;
overflow
:
hidden
;
}
a
{
color
:
#0078ff
;
}
#info
{
position
:
absolute
;
top
:
10px
;
width
:
100%
;
color
:
#ffffff
;
padding
:
5px
;
font-family
:
Monospace
;
font-size
:
13px
;
text-align
:
center
;
z-index
:
100
;
}
a
{
color
:
#ff0080
;
text-decoration
:
none
;
}
a
:hover
{
color
:
#0080ff
;
}
</style>
</head>
<body>
<div
id=
"info"
>
<a
href=
"http://threejs.org"
target=
"_blank"
rel=
"noopener"
>
three.js
</a>
- lines Software demo
</div>
<script
src=
"../build/three.js"
></script>
<script
src=
"js/Detector.js"
></script>
<script
src=
"js/libs/stats.min.js"
></script>
<script
src=
"js/renderers/Projector.js"
></script>
<script
src=
"js/renderers/SoftwareRenderer.js"
></script>
<script>
if
(
!
Detector
.
webgl
)
Detector
.
addGetWebGLMessage
();
var
SCREEN_WIDTH
=
window
.
innerWidth
,
SCREEN_HEIGHT
=
window
.
innerHeight
,
r
=
450
,
mouseX
=
0
,
mouseY
=
0
,
windowHalfX
=
window
.
innerWidth
/
2
,
windowHalfY
=
window
.
innerHeight
/
2
,
camera
,
scene
,
renderer
;
init
();
animate
();
function
init
()
{
var
container
;
container
=
document
.
createElement
(
'
div
'
);
document
.
body
.
appendChild
(
container
);
camera
=
new
THREE
.
PerspectiveCamera
(
80
,
SCREEN_WIDTH
/
SCREEN_HEIGHT
,
1
,
3000
);
camera
.
position
.
z
=
1000
;
scene
=
new
THREE
.
Scene
();
var
i
,
line
,
vertex1
,
vertex2
,
material
,
p
,
parameters
=
[
[
0.25
,
0xff7700
,
1
,
2
],
[
0.5
,
0xff9900
,
1
,
1
],
[
0.75
,
0xffaa00
,
0.75
,
1
],
[
1
,
0xffaa00
,
0.5
,
1
],
[
1.25
,
0x000833
,
0.8
,
1
],
[
3.0
,
0xaaaaaa
,
0.75
,
2
],
[
3.5
,
0xffffff
,
0.5
,
1
],
[
4.5
,
0xffffff
,
0.25
,
1
],
[
5.5
,
0xffffff
,
0.125
,
1
]
];
var
geometry
=
createGeometry
();
for
(
i
=
0
;
i
<
parameters
.
length
;
++
i
)
{
p
=
parameters
[
i
];
material
=
new
THREE
.
LineBasicMaterial
(
{
color
:
p
[
1
],
opacity
:
p
[
2
],
linewidth
:
p
[
3
]
}
);
line
=
new
THREE
.
LineSegments
(
geometry
,
material
);
line
.
scale
.
x
=
line
.
scale
.
y
=
line
.
scale
.
z
=
p
[
0
];
line
.
originalScale
=
p
[
0
];
line
.
rotation
.
y
=
Math
.
random
()
*
Math
.
PI
;
line
.
updateMatrix
();
scene
.
add
(
line
);
}
renderer
=
new
THREE
.
SoftwareRenderer
();
renderer
.
setSize
(
SCREEN_WIDTH
,
SCREEN_HEIGHT
);
container
.
appendChild
(
renderer
.
domElement
);
document
.
addEventListener
(
'
mousemove
'
,
onDocumentMouseMove
,
false
);
document
.
addEventListener
(
'
touchstart
'
,
onDocumentTouchStart
,
false
);
document
.
addEventListener
(
'
touchmove
'
,
onDocumentTouchMove
,
false
);
window
.
addEventListener
(
'
resize
'
,
onWindowResize
,
false
);
}
function
createGeometry
()
{
var
geometry
=
new
THREE
.
Geometry
();
for
(
var
i
=
0
;
i
<
1500
;
i
++
)
{
var
vertex1
=
new
THREE
.
Vector3
();
vertex1
.
x
=
Math
.
random
()
*
2
-
1
;
vertex1
.
y
=
Math
.
random
()
*
2
-
1
;
vertex1
.
z
=
Math
.
random
()
*
2
-
1
;
vertex1
.
normalize
();
vertex1
.
multiplyScalar
(
r
);
var
vertex2
=
vertex1
.
clone
();
vertex2
.
multiplyScalar
(
Math
.
random
()
*
0.09
+
1
);
geometry
.
vertices
.
push
(
vertex1
);
geometry
.
vertices
.
push
(
vertex2
);
}
return
geometry
;
}
function
onWindowResize
()
{
windowHalfX
=
window
.
innerWidth
/
2
;
windowHalfY
=
window
.
innerHeight
/
2
;
camera
.
aspect
=
window
.
innerWidth
/
window
.
innerHeight
;
camera
.
updateProjectionMatrix
();
renderer
.
setSize
(
window
.
innerWidth
,
window
.
innerHeight
);
}
function
onDocumentMouseMove
(
event
)
{
mouseX
=
event
.
clientX
-
windowHalfX
;
mouseY
=
event
.
clientY
-
windowHalfY
;
}
function
onDocumentTouchStart
(
event
)
{
if
(
event
.
touches
.
length
>
1
)
{
event
.
preventDefault
();
mouseX
=
event
.
touches
[
0
].
pageX
-
windowHalfX
;
mouseY
=
event
.
touches
[
0
].
pageY
-
windowHalfY
;
}
}
function
onDocumentTouchMove
(
event
)
{
if
(
event
.
touches
.
length
==
1
)
{
event
.
preventDefault
();
mouseX
=
event
.
touches
[
0
].
pageX
-
windowHalfX
;
mouseY
=
event
.
touches
[
0
].
pageY
-
windowHalfY
;
}
}
function
animate
()
{
requestAnimationFrame
(
animate
);
render
();
}
function
render
()
{
camera
.
position
.
y
+=
(
-
mouseY
+
200
-
camera
.
position
.
y
)
*
.
05
;
camera
.
lookAt
(
scene
.
position
);
renderer
.
render
(
scene
,
camera
);
var
time
=
Date
.
now
()
*
0.0001
;
for
(
var
i
=
0
;
i
<
scene
.
children
.
length
;
i
++
)
{
var
object
=
scene
.
children
[
i
];
if
(
object
instanceof
THREE
.
Line
)
{
object
.
rotation
.
y
=
time
*
(
i
<
4
?
(
i
+
1
)
:
-
(
i
+
1
)
);
if
(
i
<
5
)
object
.
scale
.
x
=
object
.
scale
.
y
=
object
.
scale
.
z
=
object
.
originalScale
*
(
i
/
5
+
1
)
*
(
1
+
0.5
*
Math
.
sin
(
7
*
time
)
);
}
}
}
</script>
</body>
</html>
examples/software_lines_splines.html
浏览文件 @
1ffd2e95
...
@@ -48,15 +48,12 @@
...
@@ -48,15 +48,12 @@
<script
src=
"js/geometries/hilbert3D.js"
></script>
<script
src=
"js/geometries/hilbert3D.js"
></script>
<script
src=
"js/Detector.js"
></script>
<script
src=
"js/libs/stats.min.js"
></script>
<script
src=
"js/libs/stats.min.js"
></script>
<script
src=
"js/renderers/Projector.js"
></script>
<script
src=
"js/renderers/Projector.js"
></script>
<script
src=
"js/renderers/SoftwareRenderer.js"
></script>
<script
src=
"js/renderers/SoftwareRenderer.js"
></script>
<script>
<script>
if
(
!
Detector
.
webgl
)
Detector
.
addGetWebGLMessage
();
var
mouseX
=
0
,
mouseY
=
0
,
var
mouseX
=
0
,
mouseY
=
0
,
windowHalfX
=
window
.
innerWidth
/
2
,
windowHalfX
=
window
.
innerWidth
/
2
,
...
...
examples/svg_lines.html
浏览文件 @
1ffd2e95
...
@@ -40,9 +40,6 @@
...
@@ -40,9 +40,6 @@
<script
src=
"../build/three.js"
></script>
<script
src=
"../build/three.js"
></script>
<script
src=
"js/geometries/hilbert3D.js"
></script>
<script
src=
"js/Detector.js"
></script>
<script
src=
"js/renderers/Projector.js"
></script>
<script
src=
"js/renderers/Projector.js"
></script>
<script
src=
"js/renderers/SVGRenderer.js"
></script>
<script
src=
"js/renderers/SVGRenderer.js"
></script>
...
...
examples/svg_sandbox.html
浏览文件 @
1ffd2e95
...
@@ -22,12 +22,7 @@
...
@@ -22,12 +22,7 @@
<script>
<script>
var
AMOUNT
=
100
;
var
camera
,
scene
,
renderer
,
stats
;
var
stats
;
var
camera
,
scene
;
var
renderer
;
var
mesh
,
group
;
var
mesh
,
group
;
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录