DataTexture3D.html 1.6 KB

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