Data3DTexture.html 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. <!DOCTYPE html>
  2. <html lang="zh">
  3. <head>
  4. <meta charset="utf-8" />
  5. <base href="../../../" />
  6. <script src="page.js"></script>
  7. <link type="text/css" rel="stylesheet" href="page.css" />
  8. </head>
  9. <body>
  10. [page:Texture] &rarr;
  11. <h1>[name]</h1>
  12. <p class="desc">创建一个三维的纹理贴图。</p>
  13. <h2>构造函数</h2>
  14. <h3>[name]( [param:TypedArray data], [param:Number width], [param:Number height], [param:Number depth] )</h3>
  15. <p>
  16. [page:Object data] -- 纹理的数据。<br />
  17. [page:Number width] -- 纹理的宽度。<br />
  18. [page:Number height] -- 纹理的高度。<br />
  19. [page:Number depth] -- 纹理的深度。
  20. </p>
  21. <h2>例子</h2>
  22. <p>
  23. [example:webgl_texture3d WebGL / materials / texture3d]
  24. </p>
  25. <h2>属性</h2>
  26. <p>
  27. 共有属性请参见其基类[page:Texture Texture]。
  28. </p>
  29. <h3>[property:number wrapR]</h3>
  30. <p>
  31. This defines how the texture is wrapped in the depth direction.<br />
  32. The default is [page:Textures THREE.ClampToEdgeWrapping], where the edge is clamped to the outer edge texels.
  33. The other two choices are [page:Textures THREE.RepeatWrapping] and [page:Textures THREE.MirroredRepeatWrapping].
  34. See the [page:Textures texture constants] page for details.
  35. </p>
  36. <h2>方法</h2>
  37. <p>
  38. 共有方法请参见其基类[page:Texture Texture]。
  39. </p>
  40. <h2>源代码</h2>
  41. <p>
  42. [link:https://github.com/mrdoob/three.js/blob/master/src/[path].js src/[path].js]
  43. </p>
  44. </body>
  45. </html>