2
0

CompressedArrayTexture.html 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  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:CompressedTexture] &rarr;
  11. <h1>[name]</h1>
  12. <p class="desc">
  13. Creates an texture 2D array based on data in compressed form, for example from a [link:https://en.wikipedia.org/wiki/DirectDraw_Surface DDS] file.<br /><br />
  14. For use with the [page:CompressedTextureLoader CompressedTextureLoader].
  15. </p>
  16. <h2>Constructor</h2>
  17. <h3>[name]( [param:Array mipmaps], [param:Number width], [param:Number height], [param:Constant format], [param:Constant type] )</h3>
  18. <p>
  19. [page:Array mipmaps] -- The mipmaps array should contain objects with data, width and height. The mipmaps should be of the correct format and type.<br />
  20. [page:Number width] -- The width of the biggest mipmap.<br />
  21. [page:Number height] -- The height of the biggest mipmap.<br />
  22. [page:Number depth] -- The number of layers of the 2D array texture.<br />
  23. [page:Constant format] -- The format used in the mipmaps.
  24. See [page:Textures ST3C Compressed Texture Formats],
  25. [page:Textures PVRTC Compressed Texture Formats] and
  26. [page:Textures ETC Compressed Texture Format] for other choices.<br />
  27. [page:Constant type] -- Default is [page:Textures THREE.UnsignedByteType].
  28. See [page:Textures type constants] for other choices.<br />
  29. </p>
  30. <h2>Properties</h2>
  31. See the base [page:CompressedTexture CompressedTexture] class for common properties.
  32. <h3>[property:number wrapR]</h3>
  33. <p>
  34. This defines how the texture is wrapped in the depth direction.<br />
  35. The default is [page:Textures THREE.ClampToEdgeWrapping], where the edge is clamped to the outer edge texels.
  36. The other two choices are [page:Textures THREE.RepeatWrapping] and [page:Textures THREE.MirroredRepeatWrapping].
  37. See the [page:Textures texture constants] page for details.
  38. </p>
  39. <h3>[property:Boolean isCompressedArrayTexture]</h3>
  40. <p>
  41. Read-only flag to check if a given object is of type [name].
  42. </p>
  43. <h2>Methods</h2>
  44. <p>
  45. See the base [page:CompressedTexture CompressedTexture] class for common methods.
  46. </p>
  47. <h2>Source</h2>
  48. <p>
  49. [link:https://github.com/mrdoob/three.js/blob/master/src/[path].js src/[path].js]
  50. </p>
  51. </body>
  52. </html>