提交 0b3150de 编写于 作者: D Don McCurdy

Add vertexTangents to docs and typings.

上级 340c9c3e
......@@ -261,6 +261,13 @@
Other options are [page:Materials THREE.VertexColors] and [page:Materials THREE.FaceColors].
</p>
<h3>[property:Boolean vertexTangents]</h3>
<p>
Defines whether precomputed vertex tangents, which must be provided in a vec4 "tangent" attribute,
are used. When disabled, tangents are derived automatically. Using precomputed tangents will give
more accurate normal map details in some cases, such as with mirrored UVs. Default is false.
</p>
<h3>[property:Boolean visible]</h3>
<p>
Defines whether this material is visible. Default is *true*.
......
......@@ -44,6 +44,7 @@ export interface MaterialParameters {
side?: Side;
transparent?: boolean;
vertexColors?: Colors;
vertexTangents?: boolean;
visible?: boolean;
}
......@@ -234,6 +235,11 @@ export class Material extends EventDispatcher {
*/
vertexColors: Colors;
/**
* Defines whether precomputed vertex tangents are used. Default is false.
*/
vertexTangents: boolean;
/**
* Defines whether this material is visible. Default is true.
*/
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册