Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
车家大少爷
three.js
提交
9366cfc8
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,发现更多精彩内容 >>
提交
9366cfc8
编写于
9月 10, 2015
作者:
M
Mr.doob
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Updated examples.
上级
c3096ade
变更
21
隐藏空白更改
内联
并排
Showing
21 changed file
with
56 addition
and
56 deletion
+56
-56
examples/index.html
examples/index.html
+11
-11
examples/js/GPUParticleSystem.js
examples/js/GPUParticleSystem.js
+1
-1
examples/misc_controls_fly.html
examples/misc_controls_fly.html
+7
-7
examples/webgl_buffergeometry_custom_attributes_particles.html
...les/webgl_buffergeometry_custom_attributes_particles.html
+1
-1
examples/webgl_buffergeometry_drawcalls.html
examples/webgl_buffergeometry_drawcalls.html
+2
-2
examples/webgl_buffergeometry_points.html
examples/webgl_buffergeometry_points.html
+2
-2
examples/webgl_camera.html
examples/webgl_camera.html
+1
-1
examples/webgl_custom_attributes_points.html
examples/webgl_custom_attributes_points.html
+1
-1
examples/webgl_custom_attributes_points2.html
examples/webgl_custom_attributes_points2.html
+1
-1
examples/webgl_custom_attributes_points3.html
examples/webgl_custom_attributes_points3.html
+1
-1
examples/webgl_geometry_shapes.html
examples/webgl_geometry_shapes.html
+2
-2
examples/webgl_interactive_points.html
examples/webgl_interactive_points.html
+1
-1
examples/webgl_interactive_raycasting_points.html
examples/webgl_interactive_raycasting_points.html
+8
-8
examples/webgl_kinect.html
examples/webgl_kinect.html
+1
-1
examples/webgl_nearestneighbour.html
examples/webgl_nearestneighbour.html
+1
-1
examples/webgl_points_billboards.html
examples/webgl_points_billboards.html
+2
-2
examples/webgl_points_billboards_colors.html
examples/webgl_points_billboards_colors.html
+2
-2
examples/webgl_points_dynamic.html
examples/webgl_points_dynamic.html
+3
-3
examples/webgl_points_random.html
examples/webgl_points_random.html
+3
-3
examples/webgl_points_sprites.html
examples/webgl_points_sprites.html
+3
-3
examples/webgl_trails.html
examples/webgl_trails.html
+2
-2
未找到文件。
examples/index.html
浏览文件 @
9366cfc8
...
...
@@ -235,8 +235,8 @@
"
webgl_interactive_cubes_ortho
"
,
"
webgl_interactive_draggablecubes
"
,
"
webgl_interactive_lines
"
,
"
webgl_interactive_p
article
s
"
,
"
webgl_interactive_raycasting_point
cloud
"
,
"
webgl_interactive_p
oint
s
"
,
"
webgl_interactive_raycasting_point
s
"
,
"
webgl_interactive_voxelpainter
"
,
"
webgl_kinect
"
,
"
webgl_lensflares
"
,
...
...
@@ -330,14 +330,14 @@
"
webgl_octree
"
,
"
webgl_octree_raycasting
"
,
"
webgl_panorama_equirectangular
"
,
"
webgl_particles_billboards
"
,
"
webgl_particles_billboards_colors
"
,
"
webgl_particles_dynamic
"
,
"
webgl_particles_random
"
,
"
webgl_particles_sprites
"
,
"
webgl_performance
"
,
"
webgl_performance_doublesided
"
,
"
webgl_performance_static
"
,
"
webgl_points_billboards
"
,
"
webgl_points_billboards_colors
"
,
"
webgl_points_dynamic
"
,
"
webgl_points_random
"
,
"
webgl_points_sprites
"
,
"
webgl_postprocessing
"
,
"
webgl_postprocessing_advanced
"
,
"
webgl_postprocessing_crossfade
"
,
...
...
@@ -381,14 +381,14 @@
"
webgl_buffergeometry_instancing_interleaved_dynamic
"
,
"
webgl_buffergeometry_lines
"
,
"
webgl_buffergeometry_lines_indexed
"
,
"
webgl_buffergeometry_p
article
s
"
,
"
webgl_buffergeometry_p
oint
s
"
,
"
webgl_buffergeometry_rawshader
"
,
"
webgl_buffergeometry_uint
"
,
"
webgl_custom_attributes
"
,
"
webgl_custom_attributes_lines
"
,
"
webgl_custom_attributes_p
article
s
"
,
"
webgl_custom_attributes_p
article
s2
"
,
"
webgl_custom_attributes_p
article
s3
"
"
webgl_custom_attributes_p
oint
s
"
,
"
webgl_custom_attributes_p
oint
s2
"
,
"
webgl_custom_attributes_p
oint
s3
"
],
"
vr
"
:
[
"
vr_cubes
"
,
...
...
examples/js/GPUParticleSystem.js
浏览文件 @
9366cfc8
...
...
@@ -370,7 +370,7 @@ THREE.GPUParticleContainer = function(maxParticles, particleSystem) {
self
.
particleShaderMat
=
self
.
GPUParticleSystem
.
particleShaderMat
;
this
.
init
=
function
()
{
self
.
particleSystem
=
new
THREE
.
Point
Cloud
(
self
.
particleShaderGeo
,
self
.
particleShaderMat
);
self
.
particleSystem
=
new
THREE
.
Point
s
(
self
.
particleShaderGeo
,
self
.
particleShaderMat
);
self
.
particleSystem
.
frustumCulled
=
false
;
this
.
add
(
self
.
particleSystem
);
};
...
...
examples/misc_controls_fly.html
浏览文件 @
9366cfc8
...
...
@@ -184,17 +184,17 @@
var
stars
;
var
starsMaterials
=
[
new
THREE
.
Point
Cloud
Material
(
{
color
:
0x555555
,
size
:
2
,
sizeAttenuation
:
false
}
),
new
THREE
.
Point
Cloud
Material
(
{
color
:
0x555555
,
size
:
1
,
sizeAttenuation
:
false
}
),
new
THREE
.
Point
Cloud
Material
(
{
color
:
0x333333
,
size
:
2
,
sizeAttenuation
:
false
}
),
new
THREE
.
Point
Cloud
Material
(
{
color
:
0x3a3a3a
,
size
:
1
,
sizeAttenuation
:
false
}
),
new
THREE
.
Point
Cloud
Material
(
{
color
:
0x1a1a1a
,
size
:
2
,
sizeAttenuation
:
false
}
),
new
THREE
.
Point
Cloud
Material
(
{
color
:
0x1a1a1a
,
size
:
1
,
sizeAttenuation
:
false
}
)
new
THREE
.
Point
s
Material
(
{
color
:
0x555555
,
size
:
2
,
sizeAttenuation
:
false
}
),
new
THREE
.
Point
s
Material
(
{
color
:
0x555555
,
size
:
1
,
sizeAttenuation
:
false
}
),
new
THREE
.
Point
s
Material
(
{
color
:
0x333333
,
size
:
2
,
sizeAttenuation
:
false
}
),
new
THREE
.
Point
s
Material
(
{
color
:
0x3a3a3a
,
size
:
1
,
sizeAttenuation
:
false
}
),
new
THREE
.
Point
s
Material
(
{
color
:
0x1a1a1a
,
size
:
2
,
sizeAttenuation
:
false
}
),
new
THREE
.
Point
s
Material
(
{
color
:
0x1a1a1a
,
size
:
1
,
sizeAttenuation
:
false
}
)
];
for
(
i
=
10
;
i
<
30
;
i
++
)
{
stars
=
new
THREE
.
Point
Cloud
(
starsGeometry
[
i
%
2
],
starsMaterials
[
i
%
6
]
);
stars
=
new
THREE
.
Point
s
(
starsGeometry
[
i
%
2
],
starsMaterials
[
i
%
6
]
);
stars
.
rotation
.
x
=
Math
.
random
()
*
6
;
stars
.
rotation
.
y
=
Math
.
random
()
*
6
;
...
...
examples/webgl_buffergeometry_custom_attributes_particles.html
浏览文件 @
9366cfc8
...
...
@@ -148,7 +148,7 @@
geometry
.
addAttribute
(
'
customColor
'
,
new
THREE
.
BufferAttribute
(
colors
,
3
)
);
geometry
.
addAttribute
(
'
size
'
,
new
THREE
.
BufferAttribute
(
sizes
,
1
)
);
particleSystem
=
new
THREE
.
Point
Cloud
(
geometry
,
shaderMaterial
);
particleSystem
=
new
THREE
.
Point
s
(
geometry
,
shaderMaterial
);
scene
.
add
(
particleSystem
);
...
...
examples/webgl_buffergeometry_drawcalls.html
浏览文件 @
9366cfc8
...
...
@@ -117,7 +117,7 @@
positions
=
new
Float32Array
(
segments
*
3
);
colors
=
new
Float32Array
(
segments
*
3
);
var
pMaterial
=
new
THREE
.
Point
Cloud
Material
(
{
var
pMaterial
=
new
THREE
.
Point
s
Material
(
{
color
:
0xFFFFFF
,
size
:
3
,
blending
:
THREE
.
AdditiveBlending
,
...
...
@@ -150,7 +150,7 @@
particles
.
addAttribute
(
'
position
'
,
new
THREE
.
BufferAttribute
(
particlePositions
,
3
).
setDynamic
(
true
)
);
// create the particle system
pointCloud
=
new
THREE
.
Point
Cloud
(
particles
,
new
THREE
.
MultiMaterial
(
[
pMaterial
]
)
);
pointCloud
=
new
THREE
.
Point
s
(
particles
,
new
THREE
.
MultiMaterial
(
[
pMaterial
]
)
);
group
.
add
(
pointCloud
);
var
geometry
=
new
THREE
.
BufferGeometry
();
...
...
examples/webgl_buffergeometry_p
article
s.html
→
examples/webgl_buffergeometry_p
oint
s.html
浏览文件 @
9366cfc8
...
...
@@ -108,9 +108,9 @@
//
var
material
=
new
THREE
.
Point
Cloud
Material
(
{
size
:
15
,
vertexColors
:
THREE
.
VertexColors
}
);
var
material
=
new
THREE
.
Point
s
Material
(
{
size
:
15
,
vertexColors
:
THREE
.
VertexColors
}
);
particleSystem
=
new
THREE
.
Point
Cloud
(
geometry
,
material
);
particleSystem
=
new
THREE
.
Point
s
(
geometry
,
material
);
scene
.
add
(
particleSystem
);
//
...
...
examples/webgl_camera.html
浏览文件 @
9366cfc8
...
...
@@ -137,7 +137,7 @@
}
var
particles
=
new
THREE
.
Point
Cloud
(
geometry
,
new
THREE
.
PointCloud
Material
(
{
color
:
0x888888
}
)
);
var
particles
=
new
THREE
.
Point
s
(
geometry
,
new
THREE
.
Points
Material
(
{
color
:
0x888888
}
)
);
scene
.
add
(
particles
);
//
...
...
examples/webgl_custom_attributes_p
article
s.html
→
examples/webgl_custom_attributes_p
oint
s.html
浏览文件 @
9366cfc8
...
...
@@ -157,7 +157,7 @@
//
sphere
=
new
THREE
.
Point
Cloud
(
geometry
,
material
);
sphere
=
new
THREE
.
Point
s
(
geometry
,
material
);
scene
.
add
(
sphere
);
//
...
...
examples/webgl_custom_attributes_p
article
s2.html
→
examples/webgl_custom_attributes_p
oint
s2.html
浏览文件 @
9366cfc8
...
...
@@ -160,7 +160,7 @@
//
sphere
=
new
THREE
.
Point
Cloud
(
geometry
,
material
);
sphere
=
new
THREE
.
Point
s
(
geometry
,
material
);
scene
.
add
(
sphere
);
//
...
...
examples/webgl_custom_attributes_p
article
s3.html
→
examples/webgl_custom_attributes_p
oint
s3.html
浏览文件 @
9366cfc8
...
...
@@ -228,7 +228,7 @@
//
object
=
new
THREE
.
Point
Cloud
(
geometry
,
material
);
object
=
new
THREE
.
Point
s
(
geometry
,
material
);
scene
.
add
(
object
);
//
...
...
examples/webgl_geometry_shapes.html
浏览文件 @
9366cfc8
...
...
@@ -115,7 +115,7 @@
// vertices from real points
var
pgeo
=
points
.
clone
();
var
particles
=
new
THREE
.
Point
Cloud
(
pgeo
,
new
THREE
.
PointCloud
Material
(
{
color
:
color
,
size
:
4
}
)
);
var
particles
=
new
THREE
.
Point
s
(
pgeo
,
new
THREE
.
Points
Material
(
{
color
:
color
,
size
:
4
}
)
);
particles
.
position
.
set
(
x
,
y
,
z
+
25
);
particles
.
rotation
.
set
(
rx
,
ry
,
rz
);
particles
.
scale
.
set
(
s
,
s
,
s
);
...
...
@@ -132,7 +132,7 @@
// equidistance sampled points
var
pgeo
=
spacedPoints
.
clone
();
var
particles2
=
new
THREE
.
Point
Cloud
(
pgeo
,
new
THREE
.
PointCloud
Material
(
{
color
:
color
,
size
:
4
}
)
);
var
particles2
=
new
THREE
.
Point
s
(
pgeo
,
new
THREE
.
Points
Material
(
{
color
:
color
,
size
:
4
}
)
);
particles2
.
position
.
set
(
x
,
y
,
z
+
125
);
particles2
.
rotation
.
set
(
rx
,
ry
,
rz
);
particles2
.
scale
.
set
(
s
,
s
,
s
);
...
...
examples/webgl_interactive_p
article
s.html
→
examples/webgl_interactive_p
oint
s.html
浏览文件 @
9366cfc8
...
...
@@ -148,7 +148,7 @@
//
particles
=
new
THREE
.
Point
Cloud
(
geometry
,
material
);
particles
=
new
THREE
.
Point
s
(
geometry
,
material
);
scene
.
add
(
particles
);
//
...
...
examples/webgl_interactive_raycasting_point
cloud
.html
→
examples/webgl_interactive_raycasting_point
s
.html
浏览文件 @
9366cfc8
...
...
@@ -105,8 +105,8 @@
var
geometry
=
generatePointCloudGeometry
(
color
,
width
,
length
);
var
material
=
new
THREE
.
Point
Cloud
Material
(
{
size
:
pointSize
,
vertexColors
:
THREE
.
VertexColors
}
);
var
pointcloud
=
new
THREE
.
Point
Cloud
(
geometry
,
material
);
var
material
=
new
THREE
.
Point
s
Material
(
{
size
:
pointSize
,
vertexColors
:
THREE
.
VertexColors
}
);
var
pointcloud
=
new
THREE
.
Point
s
(
geometry
,
material
);
return
pointcloud
;
...
...
@@ -133,8 +133,8 @@
geometry
.
addIndex
(
new
THREE
.
BufferAttribute
(
indices
,
1
)
);
var
material
=
new
THREE
.
Point
Cloud
Material
(
{
size
:
pointSize
,
vertexColors
:
THREE
.
VertexColors
}
);
var
pointcloud
=
new
THREE
.
Point
Cloud
(
geometry
,
material
);
var
material
=
new
THREE
.
Point
s
Material
(
{
size
:
pointSize
,
vertexColors
:
THREE
.
VertexColors
}
);
var
pointcloud
=
new
THREE
.
Point
s
(
geometry
,
material
);
return
pointcloud
;
...
...
@@ -162,8 +162,8 @@
geometry
.
addIndex
(
new
THREE
.
BufferAttribute
(
indices
,
1
)
);
geometry
.
addDrawCall
(
0
,
indices
.
length
);
var
material
=
new
THREE
.
Point
Cloud
Material
(
{
size
:
pointSize
,
vertexColors
:
THREE
.
VertexColors
}
);
var
pointcloud
=
new
THREE
.
Point
Cloud
(
geometry
,
material
);
var
material
=
new
THREE
.
Point
s
Material
(
{
size
:
pointSize
,
vertexColors
:
THREE
.
VertexColors
}
);
var
pointcloud
=
new
THREE
.
Point
s
(
geometry
,
material
);
return
pointcloud
;
...
...
@@ -205,8 +205,8 @@
geometry
.
colors
=
colors
;
geometry
.
computeBoundingBox
();
var
material
=
new
THREE
.
Point
Cloud
Material
(
{
size
:
pointSize
,
vertexColors
:
THREE
.
VertexColors
}
);
var
pointcloud
=
new
THREE
.
Point
Cloud
(
geometry
,
material
);
var
material
=
new
THREE
.
Point
s
Material
(
{
size
:
pointSize
,
vertexColors
:
THREE
.
VertexColors
}
);
var
pointcloud
=
new
THREE
.
Point
s
(
geometry
,
material
);
return
pointcloud
;
...
...
examples/webgl_kinect.html
浏览文件 @
9366cfc8
...
...
@@ -185,7 +185,7 @@
}
);
mesh
=
new
THREE
.
Point
Cloud
(
geometry
,
material
);
mesh
=
new
THREE
.
Point
s
(
geometry
,
material
);
scene
.
add
(
mesh
);
var
gui
=
new
dat
.
GUI
();
...
...
examples/webgl_nearestneighbour.html
浏览文件 @
9366cfc8
...
...
@@ -144,7 +144,7 @@
_particleGeom
.
addAttribute
(
'
position
'
,
new
THREE
.
BufferAttribute
(
positions
,
3
)
);
_particleGeom
.
addAttribute
(
'
alpha
'
,
new
THREE
.
BufferAttribute
(
alphas
,
1
)
);
particles
=
new
THREE
.
Point
Cloud
(
_particleGeom
,
pointShaderMaterial
);
particles
=
new
THREE
.
Point
s
(
_particleGeom
,
pointShaderMaterial
);
for
(
var
x
=
0
;
x
<
amountOfParticles
;
x
++
)
{
positions
[
x
*
3
+
0
]
=
Math
.
random
()
*
1000
;
...
...
examples/webgl_p
article
s_billboards.html
→
examples/webgl_p
oint
s_billboards.html
浏览文件 @
9366cfc8
...
...
@@ -81,10 +81,10 @@
}
material
=
new
THREE
.
Point
Cloud
Material
(
{
size
:
35
,
sizeAttenuation
:
false
,
map
:
sprite
,
alphaTest
:
0.5
,
transparent
:
true
}
);
material
=
new
THREE
.
Point
s
Material
(
{
size
:
35
,
sizeAttenuation
:
false
,
map
:
sprite
,
alphaTest
:
0.5
,
transparent
:
true
}
);
material
.
color
.
setHSL
(
1.0
,
0.3
,
0.7
);
particles
=
new
THREE
.
Point
Cloud
(
geometry
,
material
);
particles
=
new
THREE
.
Point
s
(
geometry
,
material
);
scene
.
add
(
particles
);
//
...
...
examples/webgl_p
article
s_billboards_colors.html
→
examples/webgl_p
oint
s_billboards_colors.html
浏览文件 @
9366cfc8
...
...
@@ -86,10 +86,10 @@
geometry
.
colors
=
colors
;
material
=
new
THREE
.
Point
Cloud
Material
(
{
size
:
85
,
map
:
sprite
,
vertexColors
:
THREE
.
VertexColors
,
alphaTest
:
0.5
,
transparent
:
true
}
);
material
=
new
THREE
.
Point
s
Material
(
{
size
:
85
,
map
:
sprite
,
vertexColors
:
THREE
.
VertexColors
,
alphaTest
:
0.5
,
transparent
:
true
}
);
material
.
color
.
setHSL
(
1.0
,
0.2
,
0.7
);
particles
=
new
THREE
.
Point
Cloud
(
geometry
,
material
);
particles
=
new
THREE
.
Point
s
(
geometry
,
material
);
scene
.
add
(
particles
);
//
...
...
examples/webgl_p
article
s_dynamic.html
→
examples/webgl_p
oint
s_dynamic.html
浏览文件 @
9366cfc8
...
...
@@ -146,7 +146,7 @@
parent
=
new
THREE
.
Object3D
();
scene
.
add
(
parent
);
var
grid
=
new
THREE
.
Point
Cloud
(
new
THREE
.
PlaneBufferGeometry
(
15000
,
15000
,
64
,
64
),
new
THREE
.
PointCloud
Material
(
{
color
:
0xff0000
,
size
:
10
}
)
);
var
grid
=
new
THREE
.
Point
s
(
new
THREE
.
PlaneBufferGeometry
(
15000
,
15000
,
64
,
64
),
new
THREE
.
Points
Material
(
{
color
:
0xff0000
,
size
:
10
}
)
);
grid
.
position
.
y
=
-
400
;
grid
.
rotation
.
x
=
-
Math
.
PI
/
2
;
parent
.
add
(
grid
);
...
...
@@ -236,7 +236,7 @@
c
=
(
i
<
clones
.
length
-
1
)
?
0x252525
:
color
;
mesh
=
new
THREE
.
Point
Cloud
(
geometry
,
new
THREE
.
PointCloud
Material
(
{
size
:
3
,
color
:
c
}
)
);
mesh
=
new
THREE
.
Point
s
(
geometry
,
new
THREE
.
Points
Material
(
{
size
:
3
,
color
:
c
}
)
);
mesh
.
scale
.
x
=
mesh
.
scale
.
y
=
mesh
.
scale
.
z
=
scale
;
mesh
.
position
.
x
=
x
+
clones
[
i
][
0
];
...
...
@@ -251,7 +251,7 @@
}
else
{
mesh
=
new
THREE
.
Point
Cloud
(
geometry
,
new
THREE
.
PointCloud
Material
(
{
size
:
3
,
color
:
color
}
)
);
mesh
=
new
THREE
.
Point
s
(
geometry
,
new
THREE
.
Points
Material
(
{
size
:
3
,
color
:
color
}
)
);
mesh
.
scale
.
x
=
mesh
.
scale
.
y
=
mesh
.
scale
.
z
=
scale
;
mesh
.
position
.
x
=
x
;
...
...
examples/webgl_p
article
s_random.html
→
examples/webgl_p
oint
s_random.html
浏览文件 @
9366cfc8
...
...
@@ -92,9 +92,9 @@
color
=
parameters
[
i
][
0
];
size
=
parameters
[
i
][
1
];
materials
[
i
]
=
new
THREE
.
Point
Cloud
Material
(
{
size
:
size
}
);
materials
[
i
]
=
new
THREE
.
Point
s
Material
(
{
size
:
size
}
);
particles
=
new
THREE
.
Point
Cloud
(
geometry
,
materials
[
i
]
);
particles
=
new
THREE
.
Point
s
(
geometry
,
materials
[
i
]
);
particles
.
rotation
.
x
=
Math
.
random
()
*
6
;
particles
.
rotation
.
y
=
Math
.
random
()
*
6
;
...
...
@@ -193,7 +193,7 @@
var
object
=
scene
.
children
[
i
];
if
(
object
instanceof
THREE
.
Point
Cloud
)
{
if
(
object
instanceof
THREE
.
Point
s
)
{
object
.
rotation
.
y
=
time
*
(
i
<
4
?
i
+
1
:
-
(
i
+
1
)
);
...
...
examples/webgl_p
article
s_sprites.html
→
examples/webgl_p
oint
s_sprites.html
浏览文件 @
9366cfc8
...
...
@@ -100,10 +100,10 @@
sprite
=
parameters
[
i
][
1
];
size
=
parameters
[
i
][
2
];
materials
[
i
]
=
new
THREE
.
Point
Cloud
Material
(
{
size
:
size
,
map
:
sprite
,
blending
:
THREE
.
AdditiveBlending
,
depthTest
:
false
,
transparent
:
true
}
);
materials
[
i
]
=
new
THREE
.
Point
s
Material
(
{
size
:
size
,
map
:
sprite
,
blending
:
THREE
.
AdditiveBlending
,
depthTest
:
false
,
transparent
:
true
}
);
materials
[
i
].
color
.
setHSL
(
color
[
0
],
color
[
1
],
color
[
2
]
);
particles
=
new
THREE
.
Point
Cloud
(
geometry
,
materials
[
i
]
);
particles
=
new
THREE
.
Point
s
(
geometry
,
materials
[
i
]
);
particles
.
rotation
.
x
=
Math
.
random
()
*
6
;
particles
.
rotation
.
y
=
Math
.
random
()
*
6
;
...
...
@@ -202,7 +202,7 @@
var
object
=
scene
.
children
[
i
];
if
(
object
instanceof
THREE
.
Point
Cloud
)
{
if
(
object
instanceof
THREE
.
Point
s
)
{
object
.
rotation
.
y
=
time
*
(
i
<
4
?
i
+
1
:
-
(
i
+
1
)
);
...
...
examples/webgl_trails.html
浏览文件 @
9366cfc8
...
...
@@ -59,9 +59,9 @@
}
var
material
=
new
THREE
.
Point
Cloud
Material
(
{
size
:
1
,
vertexColors
:
THREE
.
VertexColors
,
depthTest
:
false
,
opacity
:
0.5
,
sizeAttenuation
:
false
,
transparent
:
true
}
);
var
material
=
new
THREE
.
Point
s
Material
(
{
size
:
1
,
vertexColors
:
THREE
.
VertexColors
,
depthTest
:
false
,
opacity
:
0.5
,
sizeAttenuation
:
false
,
transparent
:
true
}
);
var
mesh
=
new
THREE
.
Point
Cloud
(
geometry
,
material
);
var
mesh
=
new
THREE
.
Point
s
(
geometry
,
material
);
scene
.
add
(
mesh
);
renderer
=
new
THREE
.
WebGLRenderer
(
{
preserveDrawingBuffer
:
true
}
);
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录