12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061 |
- <!DOCTYPE html>
- <html lang="zh">
- <head>
- <meta charset="utf-8" />
- <base href="../../../" />
- <script src="page.js"></script>
- <link type="text/css" rel="stylesheet" href="page.css" />
- </head>
- <body>
- [page:Texture] →
- <h1>[name]</h1>
- <p class="desc">创建一个三维的纹理贴图。</p>
- <h2>构造函数</h2>
- <h3>[name]( [param:TypedArray data], [param:Number width], [param:Number height], [param:Number depth] )</h3>
- <p>
- [page:Object data] -- 纹理的数据。<br />
- [page:Number width] -- 纹理的宽度。<br />
- [page:Number height] -- 纹理的高度。<br />
- [page:Number depth] -- 纹理的深度。
- </p>
- <h2>例子</h2>
- <p>
- [example:webgl_texture3d WebGL / materials / texture3d]
- </p>
- <h2>属性</h2>
- <p>
- 共有属性请参见其基类[page:Texture Texture]。
- </p>
- <h3>[property:number wrapR]</h3>
- <p>
- This defines how the texture is wrapped in the depth direction.<br />
- The default is [page:Textures THREE.ClampToEdgeWrapping], where the edge is clamped to the outer edge texels.
- The other two choices are [page:Textures THREE.RepeatWrapping] and [page:Textures THREE.MirroredRepeatWrapping].
- See the [page:Textures texture constants] page for details.
- </p>
- <h2>方法</h2>
- <p>
- 共有方法请参见其基类[page:Texture Texture]。
- </p>
- <h2>源代码</h2>
- <p>
- [link:https://github.com/mrdoob/three.js/blob/master/src/[path].js src/[path].js]
- </p>
- </body>
- </html>
|