Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
车家大少爷
three.js
提交
91854828
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,发现更多精彩内容 >>
提交
91854828
编写于
2月 24, 2012
作者:
M
Mr.doob
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
mesh.overdraw clean up.
上级
98091013
变更
12
隐藏空白更改
内联
并排
Showing
12 changed file
with
4 addition
and
21 deletion
+4
-21
examples/canvas_camera_orthographic.html
examples/canvas_camera_orthographic.html
+0
-1
examples/canvas_camera_orthographic2.html
examples/canvas_camera_orthographic2.html
+0
-1
examples/canvas_geometry_cube.html
examples/canvas_geometry_cube.html
+0
-2
examples/canvas_geometry_hierarchy.html
examples/canvas_geometry_hierarchy.html
+0
-1
examples/canvas_interactive_voxelpainter.html
examples/canvas_interactive_voxelpainter.html
+1
-2
examples/canvas_materials_depth.html
examples/canvas_materials_depth.html
+2
-3
examples/canvas_materials_video.html
examples/canvas_materials_video.html
+0
-1
examples/canvas_particles_shapes.html
examples/canvas_particles_shapes.html
+0
-1
examples/misc_lights_test.html
examples/misc_lights_test.html
+0
-1
examples/misc_materials_multimaterials.html
examples/misc_materials_multimaterials.html
+1
-2
examples/webgl_loader_json_objconverter.html
examples/webgl_loader_json_objconverter.html
+0
-3
examples/webgl_materials_shaders.html
examples/webgl_materials_shaders.html
+0
-3
未找到文件。
examples/canvas_camera_orthographic.html
浏览文件 @
91854828
...
...
@@ -77,7 +77,6 @@
for
(
var
i
=
0
;
i
<
100
;
i
++
)
{
var
cube
=
new
THREE
.
Mesh
(
geometry
,
material
);
cube
.
overdraw
=
true
;
cube
.
scale
.
y
=
Math
.
floor
(
Math
.
random
()
*
2
+
1
);
...
...
examples/canvas_camera_orthographic2.html
浏览文件 @
91854828
...
...
@@ -143,7 +143,6 @@
for
(
var
i
=
0
;
i
<
100
;
i
++
)
{
var
cube
=
new
THREE
.
Mesh
(
geometry
,
material
);
cube
.
overdraw
=
true
;
cube
.
scale
.
y
=
Math
.
floor
(
Math
.
random
()
*
2
+
1
);
...
...
examples/canvas_geometry_cube.html
浏览文件 @
91854828
...
...
@@ -71,14 +71,12 @@
cube
=
new
THREE
.
Mesh
(
new
THREE
.
CubeGeometry
(
200
,
200
,
200
,
1
,
1
,
1
,
materials
),
new
THREE
.
MeshFaceMaterial
()
);
cube
.
position
.
y
=
150
;
cube
.
overdraw
=
true
;
scene
.
add
(
cube
);
// Plane
plane
=
new
THREE
.
Mesh
(
new
THREE
.
PlaneGeometry
(
200
,
200
),
new
THREE
.
MeshBasicMaterial
(
{
color
:
0xe0e0e0
}
)
);
plane
.
rotation
.
x
=
-
90
*
(
Math
.
PI
/
180
);
plane
.
overdraw
=
true
;
scene
.
add
(
plane
);
renderer
=
new
THREE
.
CanvasRenderer
();
...
...
examples/canvas_geometry_hierarchy.html
浏览文件 @
91854828
...
...
@@ -58,7 +58,6 @@
for
(
var
i
=
0
;
i
<
200
;
i
++
)
{
var
mesh
=
new
THREE
.
Mesh
(
geometry
,
material
);
mesh
.
overdraw
=
true
;
mesh
.
position
.
x
=
Math
.
random
()
*
2000
-
1000
;
mesh
.
position
.
y
=
Math
.
random
()
*
2000
-
1000
;
mesh
.
position
.
z
=
Math
.
random
()
*
2000
-
1000
;
...
...
examples/canvas_interactive_voxelpainter.html
浏览文件 @
91854828
...
...
@@ -147,13 +147,12 @@
var
position
=
new
THREE
.
Vector3
().
add
(
intersects
[
0
].
point
,
intersects
[
0
].
object
.
matrixRotationWorld
.
multiplyVector3
(
intersects
[
0
].
face
.
normal
.
clone
()
)
);
var
voxel
=
new
THREE
.
Mesh
(
new
THREE
.
CubeGeometry
(
50
,
50
,
50
),
new
THREE
.
MeshLambertMaterial
(
{
color
:
0x00ff80
,
opacity
:
1
,
shading
:
THREE
.
FlatShading
}
)
);
var
voxel
=
new
THREE
.
Mesh
(
new
THREE
.
CubeGeometry
(
50
,
50
,
50
),
new
THREE
.
MeshLambertMaterial
(
{
color
:
0x00ff80
,
opacity
:
1
}
)
);
voxel
.
position
.
x
=
Math
.
floor
(
position
.
x
/
50
)
*
50
+
25
;
voxel
.
position
.
y
=
Math
.
floor
(
position
.
y
/
50
)
*
50
+
25
;
voxel
.
position
.
z
=
Math
.
floor
(
position
.
z
/
50
)
*
50
+
25
;
voxel
.
matrixAutoUpdate
=
false
;
voxel
.
updateMatrix
();
voxel
.
overdraw
=
true
;
scene
.
add
(
voxel
);
}
...
...
examples/canvas_materials_depth.html
浏览文件 @
91854828
...
...
@@ -66,10 +66,9 @@
// Plane
var
material
=
new
THREE
.
MeshDepthMaterial
();
var
material
=
new
THREE
.
MeshDepthMaterial
(
{
overdraw
:
true
}
);
plane
=
new
THREE
.
Mesh
(
new
THREE
.
PlaneGeometry
(
1000
,
1000
,
10
,
10
),
material
);
plane
.
overdraw
=
true
;
plane
.
doubleSided
=
true
;
plane
.
rotation
.
x
=
-
90
*
(
Math
.
PI
/
180
);
...
...
@@ -77,7 +76,7 @@
scene
.
add
(
plane
);
//
Spher
es
//
Cub
es
geometry
=
new
THREE
.
CubeGeometry
(
100
,
100
,
100
);
material
=
new
THREE
.
MeshDepthMaterial
(
{
near
:
1
,
far
:
2000
,
overdraw
:
true
}
);
...
...
examples/canvas_materials_video.html
浏览文件 @
91854828
...
...
@@ -116,7 +116,6 @@
mesh
.
scale
.
x
=
mesh
.
scale
.
y
=
mesh
.
scale
.
z
=
1.5
;
mesh
.
rotation
.
x
=
180
*
Math
.
PI
/
180
;
mesh
.
doubleSided
=
true
;
mesh
.
overdraw
=
true
;
scene
.
add
(
mesh
);
//
...
...
examples/canvas_particles_shapes.html
浏览文件 @
91854828
...
...
@@ -109,7 +109,6 @@
text
.
rotation
.
x
=
0
;
text
.
rotation
.
y
=
Math
.
PI
*
2
;
text
.
overdraw
=
true
;
parent
=
new
THREE
.
Object3D
();
parent
.
add
(
text
);
...
...
examples/misc_lights_test.html
浏览文件 @
91854828
...
...
@@ -121,7 +121,6 @@
lightMesh
=
new
THREE
.
Mesh
(
geometry
,
new
THREE
.
MeshBasicMaterial
(
{
color
:
0xffaa00
}
)
);
lightMesh
.
scale
.
x
=
lightMesh
.
scale
.
y
=
lightMesh
.
scale
.
z
=
0.05
;
lightMesh
.
position
=
pointLight
.
position
;
lightMesh
.
overdraw
=
true
;
scene
.
add
(
lightMesh
);
...
...
examples/misc_materials_multimaterials.html
浏览文件 @
91854828
...
...
@@ -226,8 +226,7 @@
zmesh
=
new
THREE
.
Mesh
(
geometry
,
new
THREE
.
MeshFaceMaterial
()
);
zmesh
.
position
.
set
(
-
80
,
FLOOR
,
50
);
zmesh
.
scale
.
x
=
zmesh
.
scale
.
y
=
zmesh
.
scale
.
z
=
3
;
zmesh
.
overdraw
=
true
;
zmesh
.
scale
.
set
(
3
,
3
,
3
);
scene
.
add
(
zmesh
);
// PLANES with all materials from the model
...
...
examples/webgl_loader_json_objconverter.html
浏览文件 @
91854828
...
...
@@ -127,8 +127,6 @@
mesh
.
scale
.
x
=
mesh
.
scale
.
y
=
mesh
.
scale
.
z
=
0.25
*
(
Math
.
random
()
+
0.5
);
mesh
.
overdraw
=
true
;
scene
.
add
(
mesh
);
}
...
...
@@ -202,7 +200,6 @@
zmesh
=
new
THREE
.
Mesh
(
geometry
,
new
THREE
.
MeshFaceMaterial
()
);
zmesh
.
position
.
set
(
x
,
y
,
z
);
zmesh
.
scale
.
set
(
3
,
3
,
3
);
zmesh
.
overdraw
=
true
;
scene
.
add
(
zmesh
);
createMaterialsPalette
(
geometry
.
materials
,
100
,
b
);
...
...
examples/webgl_materials_shaders.html
浏览文件 @
91854828
...
...
@@ -84,8 +84,6 @@
mesh
.
position
.
set
(
x
,
y
,
z
);
mesh
.
rotation
.
set
(
rx
,
ry
,
rz
);
mesh
.
overdraw
=
true
;
scene
.
add
(
mesh
);
}
...
...
@@ -121,7 +119,6 @@
lightMesh
=
new
THREE
.
Mesh
(
sphere
,
new
THREE
.
MeshBasicMaterial
(
{
color
:
0xffaa00
}
)
);
lightMesh
.
scale
.
set
(
0.05
,
0.05
,
0.05
);
lightMesh
.
position
=
pointLight
.
position
;
lightMesh
.
overdraw
=
true
;
scene
.
add
(
lightMesh
);
// material samples
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录