DataTexture3D.html 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  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>Example</h2>
  23. <div>[example:webgl2_materials_texture3d WebGL2 / materials / texture3d]</div>
  24. <div>[example:webgl2_materials_texture2darray WebGL2 / materials / texture2darray]</div>
  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>