123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051 |
- <!DOCTYPE html>
- <html lang="en">
- <head>
- <meta charset="utf-8" />
- <base href="../../../" />
- <script src="list.js"></script>
- <script src="page.js"></script>
- <link type="text/css" rel="stylesheet" href="page.css" />
- </head>
- <body>
- [page:Texture] →
- <h1>[name]</h1>
- <p class="desc">Creates a three-dimensional texture. This type of texture can only be used with a WebGL 2 rendering context.</p>
- <h2>Constructor</h2>
- <h3>[name]( [param:TypedArray data], [param:Number width], [param:Number height], [param:Number depth] )</h3>
- <p>
- [page:Object data] -- data of the texture.<br />
- [page:Number width] -- width of the texture.<br />
- [page:Number height] -- height of the texture.<br />
- [page:Number depth] -- depth of the texture.
- </p>
- <h2>Example</h2>
- <div>[example:webgl2_materials_texture3d WebGL2 / materials / texture3d]</div>
- <div>[example:webgl2_materials_texture3d_volume WebGL2 / materials / texture3d / volume]</div>
- <h2>Properties</h2>
- <p>
- See the base [page:Texture Texture] class for common properties.
- </p>
- <h2>Methods</h2>
- <p>
- See the base [page:Texture Texture] class for common methods.
- </p>
- <h2>Source</h2>
- [link:https://github.com/mrdoob/three.js/blob/master/src/[path].js src/[path].js]
- </body>
- </html>
|