未验证 提交 99b13fe3 编写于 作者: M Michael Herzog 提交者: GitHub

Docs: Clean up. (#23553)

上级 cd4f4e7f
......@@ -48,6 +48,9 @@
<h2>Properties</h2>
<p>See the base [page:Material] classes for common properties.</p>
<h3>[property:Color color]</h3>
<p>[page:Color] of the material, by default set to black (0x000000).</p>
<h3>[property:Boolean transparent]</h3>
<p>Defines whether this material is transparent. Default is *true*.</p>
......
......@@ -71,6 +71,9 @@
<h3>[property:Boolean sizeAttenuation]</h3>
<p>Whether the size of the sprite is attenuated by the camera depth. (Perspective camera only.) Default is *true*.</p>
<h3>[property:Boolean transparent]</h3>
<p>Defines whether this material is transparent. Default is *true*.</p>
<h2>Methods</h2>
<p>See the base [page:Material] class for common methods.</p>
......
......@@ -46,6 +46,11 @@
See the base [page:Texture Texture] class for common properties.
</p>
<h3>[property:Boolean flipY]</h3>
<p>
If set to *true*, the texture is flipped along the vertical axis when uploaded to the GPU. Default is *false*.
</p>
<h2>Methods</h2>
<p>
......
......@@ -19,7 +19,7 @@
<h3>[name]( data, width, height, format, type, mapping, wrapS, wrapT, magFilter, minFilter, anisotropy, encoding )</h3>
<p>
The data argument must be an [link:https://developer.mozilla.org/en-US/docs/Web/API/ArrayBufferView ArrayBufferView].
Further parameters correspond to the properties inherited from [page:Texture], where both magFilter and minFilter default to THREE.NearestFilter. The properties flipY and generateMipmaps are initially set to false.
Further parameters correspond to the properties inherited from [page:Texture], where both magFilter and minFilter default to THREE.NearestFilter.
</p>
<p>
The interpretation of the data depends on type and format:
......@@ -70,11 +70,30 @@
See the base [page:Texture Texture] class for common properties.
</p>
<h3>[property:Boolean flipY]</h3>
<p>
If set to *true*, the texture is flipped along the vertical axis when uploaded to the GPU. Default is *false*.
</p>
<h3>[property:Boolean generateMipmaps]</h3>
<p>
Whether to generate mipmaps (if possible) for a texture. False by default.
</p>
<h3>[property:Image image]</h3>
<p>
Overridden with a record type holding data, width and height.
</p>
<h3>[property:number unpackAlignment]</h3>
<p>
1 by default. Specifies the alignment requirements for the start of each pixel row in memory.
The allowable values are 1 (byte-alignment), 2 (rows aligned to even-numbered bytes),
4 (word-alignment), and 8 (rows start on double-word boundaries).
See [link:http://www.khronos.org/opengles/sdk/docs/man/xhtml/glPixelStorei.xml glPixelStorei]
for more information.
</p>
<h2>Methods</h2>
<p>
......
......@@ -51,7 +51,7 @@
[page:Constant format] -- The default is [page:Textures THREE.RGBAFormat].
See [page:Textures format constants] for other choices.<br />
[page:Constant type] -- Default is [page:Textures THREE.UnsignedByteType].
See [page:Textures type constants] for other choices.<br />
......@@ -67,6 +67,11 @@
See the base [page:Texture Texture] class for common properties.
</p>
<h3>[property:Boolean generateMipmaps]</h3>
<p>
Whether to generate mipmaps. False by default.
</p>
<h3>[property:Boolean needsUpdate]</h3>
<p>
You will not need to set this manually here as it is handled by the [page:VideoTexture.update update] method.
......
......@@ -47,6 +47,9 @@
<h2>属性(Properties)</h2>
<p>共有属性请参见其基类[page:Material]。</p>
<h3>[property:Color color]</h3>
<p>[page:Color] of the material, by default set to black (0x000000).</p>
<h3>[property:Boolean transparent]</h3>
<p>定义此材质是否透明。默认值为 *true*。</p>
......
......@@ -69,6 +69,9 @@
<h3>[property:Boolean sizeAttenuation]</h3>
<p> 精灵的大小是否会被相机深度衰减。(仅限透视摄像头。)默认为*true*。</p>
<h3>[property:Boolean transparent]</h3>
<p>定义此材质是否透明。默认值为 *true*。</p>
<h2>方法(Methods)</h2>
<p>共有方法请参见其基类[page:Material]。</p>
......
......@@ -45,6 +45,11 @@
See the base [page:Texture Texture] class for common properties.
</p>
<h3>[property:Boolean flipY]</h3>
<p>
If set to *true*, the texture is flipped along the vertical axis when uploaded to the GPU. Default is *false*.
</p>
<h2>方法</h2>
<p>
......
......@@ -19,7 +19,7 @@
<h3>[name]( data, width, height, format, type, mapping, wrapS, wrapT, magFilter, minFilter, anisotropy )</h3>
<p>
data 参数必须是一个 [link:https://developer.mozilla.org/en-US/docs/Web/API/ArrayBufferView ArrayBufferView] 。
其他参数对应于继承自 [page:Texture] 的属性,其中 magFilter 与 minFilter 默认为 THREE.NearestFilter。属性 flipY 和 generateMipmaps 初始设为 false。
其他参数对应于继承自 [page:Texture] 的属性,其中 magFilter 与 minFilter 默认为 THREE.NearestFilter。
</p>
<p>
数据的解释取决于type与format:
......@@ -70,11 +70,30 @@
See the base [page:Texture Texture] class for common properties.
</p>
<h3>[property:Boolean flipY]</h3>
<p>
If set to *true*, the texture is flipped along the vertical axis when uploaded to the GPU. Default is *false*.
</p>
<h3>[property:Boolean generateMipmaps]</h3>
<p>
Whether to generate mipmaps (if possible) for a texture. False by default.
</p>
<h3>[property:Image image]</h3>
<p>
Overridden with a record type holding data, width and height.
</p>
<h3>[property:number unpackAlignment]</h3>
<p>
1 by default. Specifies the alignment requirements for the start of each pixel row in memory.
The allowable values are 1 (byte-alignment), 2 (rows aligned to even-numbered bytes),
4 (word-alignment), and 8 (rows start on double-word boundaries).
See [link:http://www.khronos.org/opengles/sdk/docs/man/xhtml/glPixelStorei.xml glPixelStorei]
for more information.
</p>
<h2>方法</h2>
<p>
......
......@@ -67,6 +67,11 @@ const texture = new THREE.VideoTexture( video );
共有属性请参见其基类[page:Texture Texture]。
</p>
<h3>[property:Boolean generateMipmaps]</h3>
<p>
Whether to generate mipmaps. False by default.
</p>
<h3>[property:Boolean needsUpdate]</h3>
<p>
在这里,你不必手动设置这个值,因为它是由[page:VideoTexture.update update]方法来进行控制的。
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册