ViewportDepthTextureNode.html 3.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  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>, depthTexture : <span class="param-type"><a href="DepthTexture.html">DepthTexture</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 translate="no">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 translate="no">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. <tr>
  49. <td class="name">
  50. <strong translate="no">depthTexture</strong>
  51. </td>
  52. <td class="description last">
  53. <p>A depth texture. If not provided, uses a shared depth texture.</p>
  54. <p>Default is <code>null</code>.</p>
  55. </td>
  56. </tr>
  57. </tbody>
  58. </table>
  59. </div>
  60. </div>
  61. <h2 class="subsection-title">Source</h2>
  62. <p>
  63. <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>
  64. </p>
  65. </article>
  66. </section>
  67. <script src="../scripts/linenumber.js"></script>
  68. <script src="../scripts/page.js"></script>
  69. </body>
  70. </html>
粤ICP备19079148号