Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
Ablesons
three.js
提交
9d72d80f
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,发现更多精彩内容 >>
提交
9d72d80f
编写于
3月 02, 2015
作者:
M
Mr.doob
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
MeshNormalMaterial: Removed shading property.
上级
09de063f
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
6 addition
and
17 deletion
+6
-17
docs/api/materials/MeshNormalMaterial.html
docs/api/materials/MeshNormalMaterial.html
+6
-13
src/materials/MeshNormalMaterial.js
src/materials/MeshNormalMaterial.js
+0
-4
未找到文件。
docs/api/materials/MeshNormalMaterial.html
浏览文件 @
9d72d80f
...
...
@@ -12,7 +12,7 @@
<h1>
[name]
</h1>
<div
class=
"desc"
>
A material that maps the normal vectors to RGB colors.
</div>
<iframe
src=
'../../scenes/material-browser.html#MeshNormalMaterial'
></iframe>
...
...
@@ -21,10 +21,9 @@
<h3>
[name]([page:Object parameters])
</h3>
<div>
parameters is an object with one or more properties defining the material's appearance.
parameters is an object with one or more properties defining the material's appearance.
</div>
<div>
shading -- How the triangles of a curved surface are rendered. Default is [page:Materials THREE.FlatShading].
<br/>
wireframe -- Render geometry as wireframe. Default is false (i.e. render as smooth shaded).
<br/>
wireframeLinewidth -- Controls wireframe thickness. Default is 1.
<br/>
morphTargets -- Define whether the material uses morphTargets. Default is false.
<br/>
...
...
@@ -34,25 +33,19 @@
<h2>
Properties
</h2>
<h3>
[property:
number shading
]
</h3>
<h3>
[property:
boolean wireframe
]
</h3>
<div>
How the triangles of a curved surface are rendered: as a smooth surface, as flat separate facets, or no shading at all.
<br/><br/>
Options are [page:Materials THREE.SmoothShading], [page:Materials THREE.FlatShading](default)
Render geometry as wireframe. Default is false (i.e. render as smooth shaded).
</div>
<h3>
[property:boolean wireframe]
</h3>
<div>
Render geometry as wireframe. Default is false (i.e. render as smooth shaded).
</div>
<h3>
[property:number wireframeLinewidth]
</h3>
<div>
Controls wireframe thickness. Default is 1.
<br/><br/>
Due to limitations in the ANGLE layer, on Windows platforms linewidth will always be 1 regardless of the set value.
</div>
</div>
<h3>
[property:boolean morphTargets]
</h3>
<div>
Define whether the material uses morphTargets. Default is false.
</div>
<div>
Define whether the material uses morphTargets. Default is false.
</div>
<h2>
Methods
</h2>
...
...
src/materials/MeshNormalMaterial.js
浏览文件 @
9d72d80f
...
...
@@ -20,8 +20,6 @@ THREE.MeshNormalMaterial = function ( parameters ) {
this
.
type
=
'
MeshNormalMaterial
'
;
this
.
shading
=
THREE
.
FlatShading
;
this
.
wireframe
=
false
;
this
.
wireframeLinewidth
=
1
;
...
...
@@ -40,8 +38,6 @@ THREE.MeshNormalMaterial.prototype.clone = function () {
THREE
.
Material
.
prototype
.
clone
.
call
(
this
,
material
);
material
.
shading
=
this
.
shading
;
material
.
wireframe
=
this
.
wireframe
;
material
.
wireframeLinewidth
=
this
.
wireframeLinewidth
;
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录