SceneNode.html 4.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104
  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"><a href="Scene.html">Scene</a></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">
  36. <strong>scope</strong>
  37. </td>
  38. <td class="description last">
  39. <p>The scope defines the type of scene property that is accessed.</p>
  40. </td>
  41. </tr>
  42. <tr>
  43. <td class="name">
  44. <strong>scene</strong>
  45. </td>
  46. <td class="description last">
  47. <p>A reference to the scene.</p>
  48. <p>Default is <code>null</code>.</p>
  49. </td>
  50. </tr>
  51. </tbody>
  52. </table>
  53. </div>
  54. </div>
  55. <h2 class="subsection-title">Properties</h2>
  56. <div class="member">
  57. <h3 class="name" id="scene" translate="no">.<a href="#scene">scene</a><span class="type-signature"> : <a href="Scene.html">Scene</a></span> </h3>
  58. <div class="description">
  59. <p>A reference to the scene that is going to be accessed.</p>
  60. <p>Default is <code>null</code>.</p>
  61. </div>
  62. </div>
  63. <div class="member">
  64. <h3 class="name" id="scope" translate="no">.<a href="#scope">scope</a><span class="type-signature"> : 'backgroundBlurriness' | 'backgroundIntensity' | 'backgroundRotation'</span> </h3>
  65. <div class="description">
  66. <p>The scope defines the type of scene property that is accessed.</p>
  67. </div>
  68. </div>
  69. <h2 class="subsection-title">Methods</h2>
  70. <h3 class="name name-method" id="setup" translate="no">.<a href="#setup">setup</a><span class="signature">( builder : <span class="param-type"><a href="NodeBuilder.html">NodeBuilder</a></span> )</span><span class="type-signature"> : <a href="Node.html">Node</a></span> </h3>
  71. <div class="method">
  72. <div class="description">
  73. <p>Depending on the scope, the method returns a different type of node that represents
  74. the respective scene property.</p>
  75. </div>
  76. <table class="params">
  77. <tbody>
  78. <tr>
  79. <td class="name">
  80. <strong>builder</strong>
  81. </td>
  82. <td class="description last">
  83. <p>The current node builder.</p>
  84. </td>
  85. </tr>
  86. </tbody>
  87. </table>
  88. <dl class="details">
  89. <dt class="tag-overrides"><strong>Overrides:</strong> <a href="Node.html#setup">Node#setup</a></dt>
  90. </dl>
  91. <dl class="details">
  92. <dt class="tag-returns"><strong>Returns:</strong> The output node.</dt>
  93. </dl>
  94. </div>
  95. <h2 class="subsection-title">Source</h2>
  96. <p>
  97. <a href="https://github.com/mrdoob/three.js/blob/master/src/nodes/accessors/SceneNode.js" translate="no" target="_blank" rel="noopener">src/nodes/accessors/SceneNode.js</a>
  98. </p>
  99. </article>
  100. </section>
  101. <script src="../scripts/linenumber.js"></script>
  102. <script src="../scripts/page.js"></script>
  103. </body>
  104. </html>
粤ICP备19079148号