CubeDepthTexture.html 5.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143
  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="utf-8">
  5. <title>CubeDepthTexture - Three.js Docs</title>
  6. <meta name="viewport" content="width=device-width, user-scalable=no, minimum-scale=1.0, maximum-scale=1.0">
  7. <script src="../scripts/highlight.min.js"></script>
  8. <link type="text/css" rel="stylesheet" href="../styles/highlight-three.css">
  9. <link type="text/css" rel="stylesheet" href="../styles/page.css">
  10. </head>
  11. <body>
  12. <p class="inheritance" translate="no"><a href="EventDispatcher.html">EventDispatcher</a> → <a href="Texture.html">Texture</a> → <a href="DepthTexture.html">DepthTexture</a> → </p>
  13. <h1 translate="no">CubeDepthTexture</h1>
  14. <section>
  15. <header>
  16. <div class="class-description"><p>This class can be used to automatically save the depth information of a
  17. cube rendering into a cube texture with depth format. Used for PointLight shadows.</p></div>
  18. </header>
  19. <article>
  20. <div class="container-overview">
  21. <h2>Constructor</h2>
  22. <h3 class="name name-method" id="CubeDepthTexture" translate="no">new <a href="#CubeDepthTexture">CubeDepthTexture</a><span class="signature">( size : <span class="param-type">number</span>, type : <span class="param-type">number</span>, mapping : <span class="param-type">number</span>, wrapS : <span class="param-type">number</span>, wrapT : <span class="param-type">number</span>, magFilter : <span class="param-type">number</span>, minFilter : <span class="param-type">number</span>, anisotropy : <span class="param-type">number</span>, format : <span class="param-type">number</span> )</span> </h3>
  23. <div class="method">
  24. <div class="description">
  25. <p>Constructs a new cube depth texture.</p>
  26. </div>
  27. <table class="params">
  28. <tbody>
  29. <tr>
  30. <td class="name">
  31. <strong>size</strong>
  32. </td>
  33. <td class="description last">
  34. <p>The size (width and height) of each cube face.</p>
  35. </td>
  36. </tr>
  37. <tr>
  38. <td class="name">
  39. <strong>type</strong>
  40. </td>
  41. <td class="description last">
  42. <p>The texture type.</p>
  43. <p>Default is <code>UnsignedIntType</code>.</p>
  44. </td>
  45. </tr>
  46. <tr>
  47. <td class="name">
  48. <strong>mapping</strong>
  49. </td>
  50. <td class="description last">
  51. <p>The texture mapping.</p>
  52. <p>Default is <code>CubeReflectionMapping</code>.</p>
  53. </td>
  54. </tr>
  55. <tr>
  56. <td class="name">
  57. <strong>wrapS</strong>
  58. </td>
  59. <td class="description last">
  60. <p>The wrapS value.</p>
  61. <p>Default is <code>ClampToEdgeWrapping</code>.</p>
  62. </td>
  63. </tr>
  64. <tr>
  65. <td class="name">
  66. <strong>wrapT</strong>
  67. </td>
  68. <td class="description last">
  69. <p>The wrapT value.</p>
  70. <p>Default is <code>ClampToEdgeWrapping</code>.</p>
  71. </td>
  72. </tr>
  73. <tr>
  74. <td class="name">
  75. <strong>magFilter</strong>
  76. </td>
  77. <td class="description last">
  78. <p>The mag filter value.</p>
  79. <p>Default is <code>NearestFilter</code>.</p>
  80. </td>
  81. </tr>
  82. <tr>
  83. <td class="name">
  84. <strong>minFilter</strong>
  85. </td>
  86. <td class="description last">
  87. <p>The min filter value.</p>
  88. <p>Default is <code>NearestFilter</code>.</p>
  89. </td>
  90. </tr>
  91. <tr>
  92. <td class="name">
  93. <strong>anisotropy</strong>
  94. </td>
  95. <td class="description last">
  96. <p>The anisotropy value.</p>
  97. <p>Default is <code>Texture.DEFAULT_ANISOTROPY</code>.</p>
  98. </td>
  99. </tr>
  100. <tr>
  101. <td class="name">
  102. <strong>format</strong>
  103. </td>
  104. <td class="description last">
  105. <p>The texture format.</p>
  106. <p>Default is <code>DepthFormat</code>.</p>
  107. </td>
  108. </tr>
  109. </tbody>
  110. </table>
  111. </div>
  112. </div>
  113. <h2 class="subsection-title">Properties</h2>
  114. <div class="member">
  115. <h3 class="name" id="images" translate="no">.<a href="#images">images</a><span class="type-signature"> : Array.&lt;Image></span> </h3>
  116. <div class="description">
  117. <p>Alias for <a href="CubeDepthTexture.html#image">CubeDepthTexture#image</a>.</p>
  118. </div>
  119. </div>
  120. <div class="member">
  121. <h3 class="name" id="isCubeDepthTexture" translate="no">.<a href="#isCubeDepthTexture">isCubeDepthTexture</a><span class="type-signature"> : boolean</span> <span class="type-signature">(readonly) </span></h3>
  122. <div class="description">
  123. <p>This flag can be used for type testing.</p>
  124. <p>Default is <code>true</code>.</p>
  125. </div>
  126. </div>
  127. <div class="member">
  128. <h3 class="name" id="isCubeTexture" translate="no">.<a href="#isCubeTexture">isCubeTexture</a><span class="type-signature"> : boolean</span> <span class="type-signature">(readonly) </span></h3>
  129. <div class="description">
  130. <p>Set to true for cube texture handling in WebGLTextures.</p>
  131. <p>Default is <code>true</code>.</p>
  132. </div>
  133. </div>
  134. <h2 class="subsection-title">Source</h2>
  135. <p>
  136. <a href="https://github.com/mrdoob/three.js/blob/master/src/textures/CubeDepthTexture.js" translate="no" target="_blank" rel="noopener">src/textures/CubeDepthTexture.js</a>
  137. </p>
  138. </article>
  139. </section>
  140. <script src="../scripts/linenumber.js"></script>
  141. <script src="../scripts/page.js"></script>
  142. </body>
  143. </html>
粤ICP备19079148号