Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
Ablesons
three.js
提交
7fcdd522
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,体验更适合开发者的 AI 搜索 >>
提交
7fcdd522
编写于
3月 13, 2018
作者:
M
Mugen87
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Examples: Clean up
上级
d77214aa
变更
7
隐藏空白更改
内联
并排
Showing
7 changed file
with
7 addition
and
8 deletion
+7
-8
examples/files.js
examples/files.js
+1
-0
examples/webgl_lines_fat.html
examples/webgl_lines_fat.html
+1
-1
examples/webgl_loader_gltf_extensions.html
examples/webgl_loader_gltf_extensions.html
+1
-1
examples/webgl_materials_curvature.html
examples/webgl_materials_curvature.html
+2
-2
examples/webgl_materials_texture_partialupdate.html
examples/webgl_materials_texture_partialupdate.html
+1
-1
examples/webgl_postprocessing_dof2.html
examples/webgl_postprocessing_dof2.html
+1
-1
examples/webgl_shaders_ocean.html
examples/webgl_shaders_ocean.html
+0
-2
未找到文件。
examples/files.js
浏览文件 @
7fcdd522
...
...
@@ -72,6 +72,7 @@ var files = {
"
webgl_lines_colors
"
,
"
webgl_lines_cubes
"
,
"
webgl_lines_dashed
"
,
"
webgl_lines_fat
"
,
"
webgl_lines_sphere
"
,
"
webgl_lines_splines
"
,
"
webgl_loader_3ds
"
,
...
...
examples/webgl_lines_fat.html
浏览文件 @
7fcdd522
...
...
@@ -59,7 +59,7 @@
var
line
,
wireframe
,
renderer
,
scene
,
camera
,
controls
;
var
line1
,
wireframe1
;
var
renderS
tats
;
var
s
tats
;
var
gui
;
// viewport
...
...
examples/webgl_loader_gltf_extensions.html
浏览文件 @
7fcdd522
...
...
@@ -392,7 +392,7 @@
if
(
chr
==
'
'
)
{
index
=
cameraIndex
+
1
;
var
index
=
cameraIndex
+
1
;
if
(
index
>
cameras
.
length
)
index
=
0
;
switchCamera
(
index
);
...
...
examples/webgl_materials_curvature.html
浏览文件 @
7fcdd522
...
...
@@ -253,7 +253,7 @@
// fit values to 0 and 1
Object
.
keys
(
curvatureDict
).
forEach
(
function
(
key
)
{
val
=
Math
.
abs
(
curvatureDict
[
key
]
);
va
r
va
l
=
Math
.
abs
(
curvatureDict
[
key
]
);
if
(
val
<
min
)
min
=
val
;
if
(
val
>
max
)
max
=
val
;
...
...
@@ -263,7 +263,7 @@
Object
.
keys
(
curvatureDict
).
forEach
(
function
(
key
)
{
val
=
Math
.
abs
(
curvatureDict
[
key
]
);
va
r
va
l
=
Math
.
abs
(
curvatureDict
[
key
]
);
if
(
curvatureDict
[
key
]
<
0
)
{
curvatureDict
[
key
]
=
(
min
-
val
)
/
range
}
else
{
...
...
examples/webgl_materials_texture_partialupdate.html
浏览文件 @
7fcdd522
...
...
@@ -62,7 +62,7 @@
diffuseMap
.
generateMipmaps
=
false
;
var
geometry
=
new
THREE
.
PlaneBufferGeometry
(
2
,
2
);
material
=
new
THREE
.
MeshBasicMaterial
(
{
map
:
diffuseMap
}
);
var
material
=
new
THREE
.
MeshBasicMaterial
(
{
map
:
diffuseMap
}
);
var
mesh
=
new
THREE
.
Mesh
(
geometry
,
material
);
scene
.
add
(
mesh
);
...
...
examples/webgl_postprocessing_dof2.html
浏览文件 @
7fcdd522
...
...
@@ -126,7 +126,7 @@ Use WEBGL Depth buffer support?
}
);
mesh
=
new
THREE
.
Mesh
(
new
THREE
.
BoxGeometry
(
1000
,
1000
,
1000
),
material
);
var
mesh
=
new
THREE
.
Mesh
(
new
THREE
.
BoxGeometry
(
1000
,
1000
,
1000
),
material
);
camera
.
add
(
mesh
);
...
...
examples/webgl_shaders_ocean.html
浏览文件 @
7fcdd522
...
...
@@ -182,8 +182,6 @@
var
gui
=
new
dat
.
GUI
();
var
uniforms
=
sky
.
material
.
uniforms
;
var
folder
=
gui
.
addFolder
(
'
Sky
'
);
folder
.
add
(
parameters
,
'
inclination
'
,
0
,
0.5
,
0.0001
).
onChange
(
updateSun
);
folder
.
add
(
parameters
,
'
azimuth
'
,
0
,
1
,
0.0001
).
onChange
(
updateSun
);
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录