1
0

ViewportDepthTextureNode.html 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="utf-8">
  5. <title>ViewportDepthTextureNode - 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="Node.html">Node</a> → <a href="InputNode.html">InputNode</a> → <a href="UniformNode.html">UniformNode</a> → <a href="TextureNode.html">TextureNode</a> → <a href="ViewportTextureNode.html">ViewportTextureNode</a> → </p>
  13. <h1 translate="no">ViewportDepthTextureNode</h1>
  14. <section>
  15. <header>
  16. <div class="class-description"><p>Represents the depth of the current viewport as a texture. This module
  17. can be used in combination with viewport texture to achieve effects
  18. that require depth evaluation.</p></div>
  19. </header>
  20. <article>
  21. <div class="container-overview">
  22. <h2>Constructor</h2>
  23. <h3 class="name name-method" id="ViewportDepthTextureNode" translate="no">new <a href="#ViewportDepthTextureNode">ViewportDepthTextureNode</a><span class="signature">( uvNode : <span class="param-type"><a href="Node.html">Node</a></span>, levelNode : <span class="param-type"><a href="Node.html">Node</a></span> )</span> </h3>
  24. <div class="method">
  25. <div class="description">
  26. <p>Constructs a new viewport depth texture node.</p>
  27. </div>
  28. <table class="params">
  29. <tbody>
  30. <tr>
  31. <td class="name">
  32. <strong>uvNode</strong>
  33. </td>
  34. <td class="description last">
  35. <p>The uv node.</p>
  36. <p>Default is <code>screenUV</code>.</p>
  37. </td>
  38. </tr>
  39. <tr>
  40. <td class="name">
  41. <strong>levelNode</strong>
  42. </td>
  43. <td class="description last">
  44. <p>The level node.</p>
  45. <p>Default is <code>null</code>.</p>
  46. </td>
  47. </tr>
  48. </tbody>
  49. </table>
  50. </div>
  51. </div>
  52. <h2 class="subsection-title">Methods</h2>
  53. <h3 class="name name-method" id="getTextureForReference" translate="no">.<a href="#getTextureForReference">getTextureForReference</a><span class="signature">()</span><span class="type-signature"> : <a href="DepthTexture.html">DepthTexture</a></span> </h3>
  54. <div class="method">
  55. <div class="description">
  56. <p>Overwritten so the method always returns the unique shared
  57. depth texture.</p>
  58. </div>
  59. <dl class="details">
  60. <dt class="tag-overrides"><strong>Overrides:</strong> <a href="ViewportTextureNode.html#getTextureForReference">ViewportTextureNode#getTextureForReference</a></dt>
  61. </dl>
  62. <dl class="details">
  63. <dt class="tag-returns"><strong>Returns:</strong> The shared depth texture.</dt>
  64. </dl>
  65. </div>
  66. <h2 class="subsection-title">Source</h2>
  67. <p>
  68. <a href="https://github.com/mrdoob/three.js/blob/master/src/nodes/display/ViewportDepthTextureNode.js" translate="no" target="_blank" rel="noopener">src/nodes/display/ViewportDepthTextureNode.js</a>
  69. </p>
  70. </article>
  71. </section>
  72. <script src="../scripts/linenumber.js"></script>
  73. <script src="../scripts/page.js"></script>
  74. </body>
  75. </html>
粤ICP备19079148号