Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
车家大少爷
three.js
提交
26268e6b
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,发现更多精彩内容 >>
提交
26268e6b
编写于
4月 06, 2019
作者:
M
Mugen87
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Docs: Added missing properties to MeshNormalMaterial.
上级
07037f98
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
103 addition
and
2 deletion
+103
-2
docs/api/en/materials/MeshNormalMaterial.html
docs/api/en/materials/MeshNormalMaterial.html
+61
-1
docs/api/zh/materials/MeshNormalMaterial.html
docs/api/zh/materials/MeshNormalMaterial.html
+42
-1
未找到文件。
docs/api/en/materials/MeshNormalMaterial.html
浏览文件 @
26268e6b
...
...
@@ -44,6 +44,38 @@
<h2>
Properties
</h2>
<p>
See the base [page:Material] class for common properties.
</p>
<h3>
[property:Texture bumpMap]
</h3>
<p>
The texture to create a bump map. The black and white values map to the perceived depth in relation to the lights.
Bump doesn't actually affect the geometry of the object, only the lighting. If a normal map is defined this will
be ignored.
</p>
<h3>
[property:Float bumpScale]
</h3>
<p>
How much the bump map affects the material. Typical ranges are 0-1. Default is 1.
</p>
<h3>
[property:Texture displacementMap]
</h3>
<p>
The displacement map affects the position of the mesh's vertices. Unlike other maps
which only affect the light and shade of the material the displaced vertices can cast shadows,
block other objects, and otherwise act as real geometry. The displacement texture is
an image where the value of each pixel (white being the highest) is mapped against,
and repositions, the vertices of the mesh.
</p>
<h3>
[property:Float displacementScale]
</h3>
<p>
How much the displacement map affects the mesh (where black is no displacement,
and white is maximum displacement). Without a displacement map set, this value is not applied.
Default is 1.
</p>
<h3>
[property:Float displacementBias]
</h3>
<p>
The offset of the displacement map's values on the mesh's vertices.
Without a displacement map set, this value is not applied. Default is 0.
</p>
<h3>
[property:Boolean fog]
</h3>
<p>
Whether the material is affected by fog. Default is *false*.
</p>
...
...
@@ -57,9 +89,37 @@
<h3>
[property:Boolean lights]
</h3>
<p>
Whether the material is affected by lights. Default is *false*.
</p>
<h3>
[property:boolean morphTargets]
</h3>
<h3>
[property:boolean morphNormals]
</h3>
<p>
Defines whether the material uses morphNormals. Set as true to pass morphNormal
attributes from the [page:Geometry] to the shader. Default is *false*.
</p>
<h3>
[property:Boolean morphTargets]
</h3>
<p>
Define whether the material uses morphTargets. Default is false.
</p>
<h3>
[property:Texture normalMap]
</h3>
<p>
The texture to create a normal map. The RGB values affect the surface normal for each pixel fragment and change
the way the color is lit. Normal maps do not change the actual shape of the surface, only the lighting.
</p>
<h3>
[property:Integer normalMapType]
</h3>
<p>
The type of normal map.
<br
/><br
/>
Options are [page:constant THREE.TangentSpaceNormalMap] (default), and [page:constant THREE.ObjectSpaceNormalMap].
</p>
<h3>
[property:Vector2 normalScale]
</h3>
<p>
How much the normal map affects the material. Typical ranges are 0-1.
Default is a [page:Vector2] set to (1,1).
</p>
<h3>
[property:Boolean skinning]
</h3>
<p>
Define whether the material uses skinning. Default is false.
</p>
<h3>
[property:boolean wireframe]
</h3>
<p>
Render geometry as wireframe. Default is false (i.e. render as smooth shaded).
...
...
docs/api/zh/materials/MeshNormalMaterial.html
浏览文件 @
26268e6b
...
...
@@ -42,6 +42,27 @@
<h2>
属性(Properties)
</h2>
<p>
常用属性请参见基类[page:Material]。
</p>
<h3>
[property:Texture bumpMap]
</h3>
<p>
用于创建凹凸贴图的纹理。黑色和白色值映射到与光照相关的感知深度。凹凸实际上不会影响对象的几何形状,只影响光照。如果定义了法线贴图,则将忽略该贴图。
</p>
<h3>
[property:Float bumpScale]
</h3>
<p>
凹凸贴图会对材质产生多大影响。典型范围是0-1。默认值为1。
</p>
<h3>
[property:Texture displacementMap]
</h3>
<p>
位移贴图会影响网格顶点的位置,与仅影响材质的光照和阴影的其他贴图不同,移位的顶点可以投射阴影,阻挡其他对象,
以及充当真实的几何体。位移纹理是指:网格的所有顶点被映射为图像中每个像素的值(白色是最高的),并且被重定位。
</p>
<h3>
[property:Float displacementScale]
</h3>
<p>
位移贴图对网格的影响程度(黑色是无位移,白色是最大位移)。如果没有设置位移贴图,则不会应用此值。默认值为1。
</p>
<h3>
[property:Float displacementBias]
</h3>
<p>
位移贴图在网格顶点上的偏移量。如果没有设置位移贴图,则不会应用此值。默认值为0。
</p>
<h3>
[property:Boolean fog]
</h3>
<p>
材质是否受雾影响。默认值为*false*。
</p>
...
...
@@ -54,9 +75,29 @@
<h3>
[property:Boolean lights]
</h3>
<p>
材质是否受到光照的影响。默认值为 *false*。
</p>
<h3>
[property:boolean morphTargets]
</h3>
<h3>
[property:boolean morphNormals]
</h3>
<p>
定义是否使用morphNormals。设置为true可将morphNormal属性从[page:Geometry]传递到shader。默认值为*false*。
</p>
<h3>
[property:Boolean morphTargets]
</h3>
<p>
定义材质是否使用morphTargets。默认值为false。
</p>
<h3>
[property:Texture normalMap]
</h3>
<p>
用于创建法线贴图的纹理。RGB值会影响每个像素片段的曲面法线,并更改颜色照亮的方式。法线贴图不会改变曲面的实际形状,只会改变光照。
</p>
<h3>
[property:Integer normalMapType]
</h3>
<p>
法线贴图的类型。
<br
/><br
/>
选项为[page:constant THREE.TangentSpaceNormalMap](默认)和[page:constant THREE.ObjectSpaceNormalMap]。
</p>
<h3>
[property:Vector2 normalScale]
</h3>
<p>
法线贴图对材质的影响程度。典型范围是0-1。默认值是[page:Vector2]设置为(1,1)。
</p>
<h3>
[property:Boolean skinning]
</h3>
<p>
材质是否使用蒙皮。默认值为false。
</p>
<h3>
[property:boolean wireframe]
</h3>
<p>
将几何体渲染为线框。默认值为*false*(即渲染为平滑着色)。
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录