DataTexture3D.html 1.6 KB

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