Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
车家大少爷
three.js
提交
81f9e6a3
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,发现更多精彩内容 >>
未验证
提交
81f9e6a3
编写于
4月 19, 2018
作者:
M
Mr.doob
提交者:
GitHub
4月 19, 2018
浏览文件
操作
浏览文件
下载
差异文件
Merge pull request #13901 from Mugen87/dev4
Examples: Clean up
上级
ba4489de
bcd0e368
变更
17
隐藏空白更改
内联
并排
Showing
17 changed file
with
64 addition
and
51 deletion
+64
-51
examples/webgl_decals.html
examples/webgl_decals.html
+1
-1
examples/webgl_geometry_terrain_raycast.html
examples/webgl_geometry_terrain_raycast.html
+2
-2
examples/webgl_interactive_draggablecubes.html
examples/webgl_interactive_draggablecubes.html
+1
-1
examples/webgl_loader_texture_dds.html
examples/webgl_loader_texture_dds.html
+2
-2
examples/webgl_loader_texture_pvrtc.html
examples/webgl_loader_texture_pvrtc.html
+20
-14
examples/webgl_lod.html
examples/webgl_lod.html
+6
-6
examples/webgl_postprocessing_masking.html
examples/webgl_postprocessing_masking.html
+2
-2
examples/webgl_postprocessing_smaa.html
examples/webgl_postprocessing_smaa.html
+1
-1
examples/webgl_postprocessing_ssaa.html
examples/webgl_postprocessing_ssaa.html
+1
-1
examples/webgl_postprocessing_ssao.html
examples/webgl_postprocessing_ssao.html
+2
-5
examples/webgl_postprocessing_taa.html
examples/webgl_postprocessing_taa.html
+1
-1
examples/webgl_read_float_buffer.html
examples/webgl_read_float_buffer.html
+1
-1
examples/webgl_shaders_ocean.html
examples/webgl_shaders_ocean.html
+14
-4
examples/webvr_cubes.html
examples/webvr_cubes.html
+3
-3
examples/webvr_daydream.html
examples/webvr_daydream.html
+2
-2
examples/webvr_gearvr.html
examples/webvr_gearvr.html
+2
-2
examples/webvr_sandbox.html
examples/webvr_sandbox.html
+3
-3
未找到文件。
examples/webgl_decals.html
浏览文件 @
81f9e6a3
...
...
@@ -134,7 +134,7 @@
raycaster
=
new
THREE
.
Raycaster
();
mouseHelper
=
new
THREE
.
Mesh
(
new
THREE
.
BoxGeometry
(
1
,
1
,
10
),
new
THREE
.
MeshNormalMaterial
()
);
mouseHelper
=
new
THREE
.
Mesh
(
new
THREE
.
Box
Buffer
Geometry
(
1
,
1
,
10
),
new
THREE
.
MeshNormalMaterial
()
);
mouseHelper
.
visible
=
false
;
scene
.
add
(
mouseHelper
);
...
...
examples/webgl_geometry_terrain_raycast.html
浏览文件 @
81f9e6a3
...
...
@@ -109,13 +109,13 @@
mesh
=
new
THREE
.
Mesh
(
geometry
,
new
THREE
.
MeshBasicMaterial
(
{
map
:
texture
}
)
);
scene
.
add
(
mesh
);
var
geometry
=
new
THREE
.
C
ylinderGeometry
(
0
,
20
,
100
,
3
);
var
geometry
=
new
THREE
.
C
oneBufferGeometry
(
20
,
100
,
3
);
geometry
.
translate
(
0
,
50
,
0
);
geometry
.
rotateX
(
Math
.
PI
/
2
);
helper
=
new
THREE
.
Mesh
(
geometry
,
new
THREE
.
MeshNormalMaterial
()
);
scene
.
add
(
helper
);
renderer
=
new
THREE
.
WebGLRenderer
();
renderer
=
new
THREE
.
WebGLRenderer
(
{
antialias
:
true
}
);
renderer
.
setPixelRatio
(
window
.
devicePixelRatio
);
renderer
.
setSize
(
window
.
innerWidth
,
window
.
innerHeight
);
...
...
examples/webgl_interactive_draggablecubes.html
浏览文件 @
81f9e6a3
...
...
@@ -65,7 +65,7 @@
scene
.
add
(
light
);
var
geometry
=
new
THREE
.
BoxGeometry
(
40
,
40
,
40
);
var
geometry
=
new
THREE
.
Box
Buffer
Geometry
(
40
,
40
,
40
);
for
(
var
i
=
0
;
i
<
200
;
i
++
)
{
...
...
examples/webgl_loader_texture_dds.html
浏览文件 @
81f9e6a3
...
...
@@ -55,7 +55,7 @@
scene
=
new
THREE
.
Scene
();
var
geometry
=
new
THREE
.
BoxGeometry
(
200
,
200
,
200
);
var
geometry
=
new
THREE
.
Box
Buffer
Geometry
(
200
,
200
,
200
);
/*
This is how compressed textures are supposed to be used:
...
...
@@ -118,7 +118,7 @@
var
material8
=
new
THREE
.
MeshBasicMaterial
(
{
map
:
map6
}
);
var
mesh
=
new
THREE
.
Mesh
(
new
THREE
.
TorusGeometry
(
100
,
50
,
32
,
16
),
material1
);
var
mesh
=
new
THREE
.
Mesh
(
new
THREE
.
Torus
Buffer
Geometry
(
100
,
50
,
32
,
16
),
material1
);
mesh
.
position
.
x
=
-
600
;
mesh
.
position
.
y
=
-
200
;
scene
.
add
(
mesh
);
...
...
examples/webgl_loader_texture_pvrtc.html
浏览文件 @
81f9e6a3
...
...
@@ -54,24 +54,30 @@
scene
=
new
THREE
.
Scene
();
var
geometry
=
new
THREE
.
BoxGeometry
(
200
,
200
,
200
);
var
geometry
=
new
THREE
.
Box
Buffer
Geometry
(
200
,
200
,
200
);
//
var
onCube1Loaded
=
function
(
texture
){
var
onCube1Loaded
=
function
(
texture
){
texture
.
magFilter
=
THREE
.
LinearFilter
;
texture
.
minFilter
=
THREE
.
LinearFilter
;
texture
.
mapping
=
THREE
.
CubeReflectionMapping
;
material6
.
needsUpdate
=
true
;
};
var
onCube2Loaded
=
function
(
texture
){
};
var
onCube2Loaded
=
function
(
texture
){
texture
.
magFilter
=
THREE
.
LinearFilter
;
// texture.minFilter = THREE.LinearMipMapNearestFilter;
texture
.
minFilter
=
THREE
.
LinearFilter
;
texture
.
mapping
=
THREE
.
CubeReflectionMapping
;
material8
.
needsUpdate
=
true
;
};
};
//
var
loader
=
new
THREE
.
PVRLoader
();
...
...
@@ -84,7 +90,6 @@
var
park3_cube_nomip_4bpp_rgb
=
loader
.
load
(
'
textures/compressed/park3_cube_nomip_4bpp_rgb.pvr
'
,
onCube1Loaded
);
var
park3_cube_mip_2bpp_rgb_v3
=
loader
.
load
(
'
textures/compressed/park3_cube_mip_2bpp_rgb_v3.pvr
'
,
onCube2Loaded
);
disturb_2bpp_rgb
.
minFilter
=
disturb_2bpp_rgb
.
magFilter
=
flare_4bpp_rgba
.
minFilter
=
...
...
@@ -96,16 +101,17 @@
flare_2bpp_rgba
.
minFilter
=
flare_2bpp_rgba
.
magFilter
=
THREE
.
LinearFilter
;
var
material1
=
new
THREE
.
MeshBasicMaterial
(
{
map
:
disturb_4bpp_rgb
}
);
var
material2
=
new
THREE
.
MeshBasicMaterial
(
{
map
:
disturb_4bpp_rgb_mips
}
);
var
material3
=
new
THREE
.
MeshBasicMaterial
(
{
map
:
disturb_2bpp_rgb
}
);
var
material4
=
new
THREE
.
MeshBasicMaterial
(
{
map
:
flare_4bpp_rgba
,
side
:
THREE
.
DoubleSide
,
depthTest
:
false
,
transparent
:
true
}
);
var
material5
=
new
THREE
.
MeshBasicMaterial
(
{
map
:
flare_2bpp_rgba
,
side
:
THREE
.
DoubleSide
,
depthTest
:
false
,
transparent
:
true
}
);
var
material1
=
new
THREE
.
MeshBasicMaterial
(
{
map
:
disturb_4bpp_rgb
}
);
var
material2
=
new
THREE
.
MeshBasicMaterial
(
{
map
:
disturb_4bpp_rgb_mips
}
);
var
material3
=
new
THREE
.
MeshBasicMaterial
(
{
map
:
disturb_2bpp_rgb
}
);
var
material4
=
new
THREE
.
MeshBasicMaterial
(
{
map
:
flare_4bpp_rgba
,
side
:
THREE
.
DoubleSide
,
depthTest
:
false
,
transparent
:
true
}
);
var
material5
=
new
THREE
.
MeshBasicMaterial
(
{
map
:
flare_2bpp_rgba
,
side
:
THREE
.
DoubleSide
,
depthTest
:
false
,
transparent
:
true
}
);
var
material6
=
new
THREE
.
MeshBasicMaterial
(
{
envMap
:
park3_cube_nomip_4bpp_rgb
}
);
var
material8
=
new
THREE
.
MeshBasicMaterial
(
{
envMap
:
park3_cube_mip_2bpp_rgb_v3
}
);
var
material7
=
new
THREE
.
MeshBasicMaterial
(
{
map
:
disturb_4bpp_rgb_v3
}
);
var
material7
=
new
THREE
.
MeshBasicMaterial
(
{
map
:
disturb_4bpp_rgb_v3
}
);
//
var
mesh
=
new
THREE
.
Mesh
(
geometry
,
material1
);
mesh
.
position
.
x
=
-
500
;
...
...
@@ -143,7 +149,7 @@
scene
.
add
(
mesh
);
meshes
.
push
(
mesh
);
var
torus
=
new
THREE
.
TorusGeometry
(
100
,
50
,
32
,
24
);
var
torus
=
new
THREE
.
Torus
Buffer
Geometry
(
100
,
50
,
32
,
24
);
mesh
=
new
THREE
.
Mesh
(
torus
,
material6
);
mesh
.
position
.
x
=
166
;
...
...
@@ -157,7 +163,7 @@
scene
.
add
(
mesh
);
meshes
.
push
(
mesh
);
//
renderer
=
new
THREE
.
WebGLRenderer
(
{
antialias
:
true
}
);
renderer
.
setPixelRatio
(
window
.
devicePixelRatio
);
...
...
examples/webgl_lod.html
浏览文件 @
81f9e6a3
...
...
@@ -84,11 +84,11 @@
var
geometry
=
[
[
new
THREE
.
IcosahedronGeometry
(
100
,
4
),
50
],
[
new
THREE
.
IcosahedronGeometry
(
100
,
3
),
300
],
[
new
THREE
.
IcosahedronGeometry
(
100
,
2
),
1000
],
[
new
THREE
.
IcosahedronGeometry
(
100
,
1
),
2000
],
[
new
THREE
.
IcosahedronGeometry
(
100
,
0
),
8000
]
[
new
THREE
.
Icosahedron
Buffer
Geometry
(
100
,
4
),
50
],
[
new
THREE
.
Icosahedron
Buffer
Geometry
(
100
,
3
),
300
],
[
new
THREE
.
Icosahedron
Buffer
Geometry
(
100
,
2
),
1000
],
[
new
THREE
.
Icosahedron
Buffer
Geometry
(
100
,
1
),
2000
],
[
new
THREE
.
Icosahedron
Buffer
Geometry
(
100
,
0
),
8000
]
];
...
...
@@ -120,7 +120,7 @@
}
renderer
=
new
THREE
.
WebGLRenderer
();
renderer
=
new
THREE
.
WebGLRenderer
(
{
antialias
:
true
}
);
renderer
.
setPixelRatio
(
window
.
devicePixelRatio
);
renderer
.
setSize
(
window
.
innerWidth
,
window
.
innerHeight
);
container
.
appendChild
(
renderer
.
domElement
);
...
...
examples/webgl_postprocessing_masking.html
浏览文件 @
81f9e6a3
...
...
@@ -47,10 +47,10 @@
var
scene1
=
new
THREE
.
Scene
();
var
scene2
=
new
THREE
.
Scene
();
box
=
new
THREE
.
Mesh
(
new
THREE
.
BoxGeometry
(
4
,
4
,
4
)
);
box
=
new
THREE
.
Mesh
(
new
THREE
.
Box
Buffer
Geometry
(
4
,
4
,
4
)
);
scene1
.
add
(
box
);
torus
=
new
THREE
.
Mesh
(
new
THREE
.
TorusGeometry
(
3
,
1
,
16
,
32
)
);
torus
=
new
THREE
.
Mesh
(
new
THREE
.
Torus
Buffer
Geometry
(
3
,
1
,
16
,
32
)
);
scene2
.
add
(
torus
);
renderer
=
new
THREE
.
WebGLRenderer
();
...
...
examples/webgl_postprocessing_smaa.html
浏览文件 @
81f9e6a3
...
...
@@ -55,7 +55,7 @@
scene
=
new
THREE
.
Scene
();
var
geometry
=
new
THREE
.
BoxGeometry
(
120
,
120
,
120
);
var
geometry
=
new
THREE
.
Box
Buffer
Geometry
(
120
,
120
,
120
);
var
material
=
new
THREE
.
MeshBasicMaterial
(
{
color
:
0xffffff
,
wireframe
:
true
}
);
var
mesh
=
new
THREE
.
Mesh
(
geometry
,
material
);
...
...
examples/webgl_postprocessing_ssaa.html
浏览文件 @
81f9e6a3
...
...
@@ -100,7 +100,7 @@
scene
=
new
THREE
.
Scene
();
var
geometry
=
new
THREE
.
BoxGeometry
(
120
,
120
,
120
);
var
geometry
=
new
THREE
.
Box
Buffer
Geometry
(
120
,
120
,
120
);
var
material
=
new
THREE
.
MeshBasicMaterial
(
{
color
:
0xffffff
,
wireframe
:
true
}
);
var
mesh
=
new
THREE
.
Mesh
(
geometry
,
material
);
...
...
examples/webgl_postprocessing_ssao.html
浏览文件 @
81f9e6a3
...
...
@@ -92,7 +92,7 @@ Spiral sampling http://web.archive.org/web/20120421191837/http://www.cgafaq.info
group
=
new
THREE
.
Object3D
();
scene
.
add
(
group
);
var
geometry
=
new
THREE
.
BoxGeometry
(
10
,
10
,
10
);
var
geometry
=
new
THREE
.
Box
Buffer
Geometry
(
10
,
10
,
10
);
for
(
var
i
=
0
;
i
<
200
;
i
++
)
{
var
material
=
new
THREE
.
MeshBasicMaterial
();
...
...
@@ -124,13 +124,9 @@ Spiral sampling http://web.archive.org/web/20120421191837/http://www.cgafaq.info
gui
.
add
(
postprocessing
,
'
enabled
'
);
gui
.
add
(
postprocessing
,
'
onlyAO
'
,
false
).
onChange
(
function
(
value
)
{
ssaoPass
.
onlyAO
=
value
;
}
);
gui
.
add
(
postprocessing
,
'
radius
'
).
min
(
0
).
max
(
64
).
onChange
(
function
(
value
)
{
ssaoPass
.
radius
=
value
;
}
);
gui
.
add
(
postprocessing
,
'
aoClamp
'
).
min
(
0
).
max
(
1
).
onChange
(
function
(
value
)
{
ssaoPass
.
aoClamp
=
value
;
}
);
gui
.
add
(
postprocessing
,
'
lumInfluence
'
).
min
(
0
).
max
(
1
).
onChange
(
function
(
value
)
{
ssaoPass
.
lumInfluence
=
value
;
}
);
window
.
addEventListener
(
'
resize
'
,
onWindowResize
,
false
);
...
...
@@ -155,6 +151,7 @@ Spiral sampling http://web.archive.org/web/20120421191837/http://www.cgafaq.info
var
newWidth
=
Math
.
floor
(
width
/
pixelRatio
)
||
1
;
var
newHeight
=
Math
.
floor
(
height
/
pixelRatio
)
||
1
;
effectComposer
.
setSize
(
newWidth
,
newHeight
);
}
function
initPostprocessing
()
{
...
...
examples/webgl_postprocessing_taa.html
浏览文件 @
81f9e6a3
...
...
@@ -122,7 +122,7 @@
scene
=
new
THREE
.
Scene
();
var
geometry
=
new
THREE
.
BoxGeometry
(
120
,
120
,
120
);
var
geometry
=
new
THREE
.
Box
Buffer
Geometry
(
120
,
120
,
120
);
var
material
=
new
THREE
.
MeshBasicMaterial
(
{
color
:
0xffffff
,
wireframe
:
true
}
);
var
mesh
=
new
THREE
.
Mesh
(
geometry
,
material
);
...
...
examples/webgl_read_float_buffer.html
浏览文件 @
81f9e6a3
...
...
@@ -150,7 +150,7 @@
quad
.
position
.
z
=
-
100
;
sceneRTT
.
add
(
quad
);
var
geometry
=
new
THREE
.
TorusGeometry
(
100
,
25
,
15
,
30
);
var
geometry
=
new
THREE
.
Torus
Buffer
Geometry
(
100
,
25
,
15
,
30
);
var
mat1
=
new
THREE
.
MeshPhongMaterial
(
{
color
:
0x555555
,
specular
:
0xffaa00
,
shininess
:
5
}
);
var
mat2
=
new
THREE
.
MeshPhongMaterial
(
{
color
:
0x550000
,
specular
:
0xff2200
,
shininess
:
5
}
);
...
...
examples/webgl_shaders_ocean.html
浏览文件 @
81f9e6a3
...
...
@@ -144,16 +144,26 @@
//
var
geometry
=
new
THREE
.
IcosahedronGeometry
(
20
,
1
);
var
geometry
=
new
THREE
.
IcosahedronBufferGeometry
(
20
,
1
);
var
count
=
geometry
.
attributes
.
position
.
count
;
for
(
var
i
=
0
,
j
=
geometry
.
faces
.
length
;
i
<
j
;
i
++
)
{
var
colors
=
[];
var
color
=
new
THREE
.
Color
();
geometry
.
faces
[
i
].
color
.
setHex
(
Math
.
random
()
*
0xffffff
);
for
(
var
i
=
0
;
i
<
count
;
i
+=
3
)
{
color
.
setHex
(
Math
.
random
()
*
0xffffff
);
colors
.
push
(
color
.
r
,
color
.
g
,
color
.
b
);
colors
.
push
(
color
.
r
,
color
.
g
,
color
.
b
);
colors
.
push
(
color
.
r
,
color
.
g
,
color
.
b
);
}
geometry
.
addAttribute
(
'
color
'
,
new
THREE
.
Float32BufferAttribute
(
colors
,
3
)
);
var
material
=
new
THREE
.
MeshStandardMaterial
(
{
vertexColors
:
THREE
.
Face
Colors
,
vertexColors
:
THREE
.
Vertex
Colors
,
roughness
:
0.0
,
flatShading
:
true
,
envMap
:
cubeCamera
.
renderTarget
.
texture
,
...
...
examples/webvr_cubes.html
浏览文件 @
81f9e6a3
...
...
@@ -61,7 +61,7 @@
scene
.
add
(
camera
);
crosshair
=
new
THREE
.
Mesh
(
new
THREE
.
RingGeometry
(
0.02
,
0.04
,
32
),
new
THREE
.
Ring
Buffer
Geometry
(
0.02
,
0.04
,
32
),
new
THREE
.
MeshBasicMaterial
(
{
color
:
0xffffff
,
opacity
:
0.5
,
...
...
@@ -72,7 +72,7 @@
camera
.
add
(
crosshair
);
room
=
new
THREE
.
Mesh
(
new
THREE
.
BoxGeometry
(
6
,
6
,
6
,
8
,
8
,
8
),
new
THREE
.
Box
Buffer
Geometry
(
6
,
6
,
6
,
8
,
8
,
8
),
new
THREE
.
MeshBasicMaterial
(
{
color
:
0x404040
,
wireframe
:
true
}
)
);
room
.
position
.
y
=
3
;
...
...
@@ -84,7 +84,7 @@
light
.
position
.
set
(
1
,
1
,
1
).
normalize
();
scene
.
add
(
light
);
var
geometry
=
new
THREE
.
BoxGeometry
(
0.15
,
0.15
,
0.15
);
var
geometry
=
new
THREE
.
Box
Buffer
Geometry
(
0.15
,
0.15
,
0.15
);
for
(
var
i
=
0
;
i
<
200
;
i
++
)
{
...
...
examples/webvr_daydream.html
浏览文件 @
81f9e6a3
...
...
@@ -58,7 +58,7 @@
camera
=
new
THREE
.
PerspectiveCamera
(
70
,
window
.
innerWidth
/
window
.
innerHeight
,
0.1
,
10
);
room
=
new
THREE
.
Mesh
(
new
THREE
.
BoxGeometry
(
6
,
6
,
6
,
8
,
8
,
8
),
new
THREE
.
Box
Buffer
Geometry
(
6
,
6
,
6
,
8
,
8
,
8
),
new
THREE
.
MeshBasicMaterial
(
{
color
:
0x808080
,
wireframe
:
true
}
)
);
room
.
position
.
y
=
3
;
...
...
@@ -70,7 +70,7 @@
light
.
position
.
set
(
1
,
1
,
1
).
normalize
();
scene
.
add
(
light
);
var
geometry
=
new
THREE
.
IcosahedronGeometry
(
0.08
,
2
);
var
geometry
=
new
THREE
.
Icosahedron
Buffer
Geometry
(
0.08
,
2
);
for
(
var
i
=
0
;
i
<
200
;
i
++
)
{
...
...
examples/webvr_gearvr.html
浏览文件 @
81f9e6a3
...
...
@@ -61,7 +61,7 @@
camera
=
new
THREE
.
PerspectiveCamera
(
70
,
window
.
innerWidth
/
window
.
innerHeight
,
0.1
,
10
);
room
=
new
THREE
.
Mesh
(
new
THREE
.
BoxGeometry
(
6
,
6
,
6
,
8
,
8
,
8
),
new
THREE
.
Box
Buffer
Geometry
(
6
,
6
,
6
,
8
,
8
,
8
),
new
THREE
.
MeshBasicMaterial
(
{
color
:
0x404040
,
wireframe
:
true
}
)
);
room
.
position
.
y
=
3
;
...
...
@@ -73,7 +73,7 @@
light
.
position
.
set
(
1
,
1
,
1
).
normalize
();
scene
.
add
(
light
);
var
geometry
=
new
THREE
.
IcosahedronGeometry
(
0.08
,
2
);
var
geometry
=
new
THREE
.
Icosahedron
Buffer
Geometry
(
0.08
,
2
);
for
(
var
i
=
0
;
i
<
200
;
i
++
)
{
...
...
examples/webvr_sandbox.html
浏览文件 @
81f9e6a3
...
...
@@ -43,7 +43,7 @@
camera
=
new
THREE
.
PerspectiveCamera
(
50
,
window
.
innerWidth
/
window
.
innerHeight
,
0.1
,
10
);
var
geometry
=
new
THREE
.
TorusKnotGeometry
(
0.4
,
0.15
,
150
,
20
);
var
geometry
=
new
THREE
.
TorusKnot
Buffer
Geometry
(
0.4
,
0.15
,
150
,
20
);
var
material
=
new
THREE
.
MeshStandardMaterial
(
{
roughness
:
0.01
,
metalness
:
0.2
,
envMap
:
background
}
);
var
mesh
=
new
THREE
.
Mesh
(
geometry
,
material
);
mesh
.
position
.
y
=
0.75
;
...
...
@@ -52,7 +52,7 @@
mesh
.
receiveShadow
=
true
;
scene
.
add
(
mesh
);
var
geometry
=
new
THREE
.
BoxGeometry
(
1.5
,
0.1
,
1.5
);
var
geometry
=
new
THREE
.
Box
Buffer
Geometry
(
1.5
,
0.1
,
1.5
);
var
material
=
new
THREE
.
MeshPhongMaterial
();
var
mesh
=
new
THREE
.
Mesh
(
geometry
,
material
);
mesh
.
position
.
y
=
-
0.2
;
...
...
@@ -110,7 +110,7 @@
reflector
.
rotation
.
y
=
-
Math
.
PI
/
4
;
scene
.
add
(
reflector
);
var
geometry
=
new
THREE
.
BoxGeometry
(
1.5
,
1.5
,
0.1
);
var
geometry
=
new
THREE
.
Box
Buffer
Geometry
(
1.5
,
1.5
,
0.1
);
var
material
=
new
THREE
.
MeshPhongMaterial
();
var
mesh
=
new
THREE
.
Mesh
(
geometry
,
material
);
mesh
.
position
.
z
=
-
0.07
;
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录