SceneNode.html 4.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990
  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="utf-8">
  5. <title>SceneNode - 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> → </p>
  13. <h1 translate="no">SceneNode</h1>
  14. <section>
  15. <header>
  16. <div class="class-description"><p>This module allows access to a collection of scene properties. The following predefined TSL objects
  17. are available for easier use:</p>
  18. <ul>
  19. <li><code>backgroundBlurriness</code>: A node that represents the scene's background blurriness.</li>
  20. <li><code>backgroundIntensity</code>: A node that represents the scene's background intensity.</li>
  21. <li><code>backgroundRotation</code>: A node that represents the scene's background rotation.</li>
  22. </ul></div>
  23. </header>
  24. <article>
  25. <div class="container-overview">
  26. <h2>Constructor</h2>
  27. <h3 class="name name-method" id="SceneNode" translate="no">new <a href="#SceneNode">SceneNode</a><span class="signature">( scope : <span class="param-type">'backgroundBlurriness' | 'backgroundIntensity' | 'backgroundRotation'</span>, scene : <span class="param-type">Scene</span> )</span> </h3>
  28. <div class="method">
  29. <div class="description">
  30. <p>Constructs a new scene node.</p>
  31. </div>
  32. <table class="params">
  33. <tbody>
  34. <tr>
  35. <td class="name"><code>scope</code></td>
  36. <td class="description last"><p>The scope defines the type of scene property that is accessed.</p></td>
  37. </tr>
  38. <tr>
  39. <td class="name"><code>scene</code></td>
  40. <td class="description last"><p>A reference to the scene.<br/>Default is <code>null</code>.</p></td>
  41. </tr>
  42. </tbody>
  43. </table>
  44. </div>
  45. </div>
  46. <h2 class="subsection-title">Properties</h2>
  47. <div class="member">
  48. <h3 class="name" id="scene" translate="no">.<a href="#scene">scene</a><span class="type-signature"> : <a href="Scene.html">Scene</a></span> </h3>
  49. <div class="description">
  50. <p>A reference to the scene that is going to be accessed.<br/>Default is <code>null</code>.</p>
  51. </div>
  52. </div>
  53. <div class="member">
  54. <h3 class="name" id="scope" translate="no">.<a href="#scope">scope</a><span class="type-signature"> : 'backgroundBlurriness' | 'backgroundIntensity' | 'backgroundRotation'</span> </h3>
  55. <div class="description">
  56. <p>The scope defines the type of scene property that is accessed.</p>
  57. </div>
  58. </div>
  59. <h2 class="subsection-title">Methods</h2>
  60. <h3 class="name name-method" id="setup" translate="no">.<a href="#setup">setup</a><span class="signature">( builder : <span class="param-type">NodeBuilder</span> )</span><span class="type-signature"> : <a href="Node.html">Node</a></span> </h3>
  61. <div class="method">
  62. <div class="description">
  63. <p>Depending on the scope, the method returns a different type of node that represents
  64. the respective scene property.</p>
  65. </div>
  66. <table class="params">
  67. <tbody>
  68. <tr>
  69. <td class="name"><code>builder</code></td>
  70. <td class="description last"><p>The current node builder.</p></td>
  71. </tr>
  72. </tbody>
  73. </table>
  74. <dl class="details">
  75. <dt class="tag-overrides"><strong>Overrides:</strong> <a href="Node.html#setup">Node#setup</a></dt>
  76. </dl>
  77. <dl class="details">
  78. <dt class="tag-returns"><strong>Returns:</strong> The output node.</dt>
  79. </dl>
  80. </div>
  81. <h2 class="subsection-title">Source</h2>
  82. <p>
  83. <a href="https://github.com/mrdoob/three.js/blob/master/src/nodes/accessors/SceneNode.js" target="_blank" rel="noopener" translate="no">src/nodes/accessors/SceneNode.js</a>
  84. </p>
  85. </article>
  86. </section>
  87. <script src="../scripts/linenumber.js"></script>
  88. <script src="../scripts/page.js"></script>
  89. </body>
  90. </html>
粤ICP备19079148号