2
0

DataTexture3D.html 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. <!DOCTYPE html>
  2. <html lang="en">
  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">Creates a three-dimensional texture. This type of texture can only be used with a WebGL 2 rendering context.</p>
  14. <h2>Constructor</h2>
  15. <h3>[name]( [param:TypedArray data], [param:Number width], [param:Number height], [param:Number depth] )</h3>
  16. <p>
  17. [page:Object data] -- data of the texture.<br />
  18. [page:Number width] -- width of the texture.<br />
  19. [page:Number height] -- height of the texture.<br />
  20. [page:Number depth] -- depth of the texture.
  21. </p>
  22. <h2>Examples</h2>
  23. <p>
  24. [example:webgl2_materials_texture3d WebGL2 / materials / texture3d]
  25. </p>
  26. <h2>Properties</h2>
  27. <p>
  28. See the base [page:Texture Texture] class for common properties.
  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>Methods</h2>
  38. <p>
  39. See the base [page:Texture Texture] class for common methods.
  40. </p>
  41. <h2>Source</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>