| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970 |
- <!DOCTYPE html>
- <html lang="en">
- <head>
- <meta charset="utf-8">
- <title>TileShadowNodeHelper - Three.js Docs</title>
- <meta name="viewport" content="width=device-width, user-scalable=no, minimum-scale=1.0, maximum-scale=1.0">
- <script src="../scripts/highlight.min.js"></script>
- <link type="text/css" rel="stylesheet" href="../styles/highlight-three.css">
- <link type="text/css" rel="stylesheet" href="../styles/page.css">
- </head>
- <body>
- <p class="inheritance" translate="no"><a href="EventDispatcher.html">EventDispatcher</a> → <a href="Object3D.html">Object3D</a> → <a href="Group.html">Group</a> → </p>
- <h1 translate="no">TileShadowNodeHelper</h1>
- <section>
- <header>
- <div class="class-description"><p>Helper class to manage and display debug visuals for TileShadowNode.</p></div>
- </header>
- <article>
- <h2 class="subsection-title">Import</h2>
- <p><span translate="no">TileShadowNodeHelper</span> is an addon, and must be imported explicitly, see <a href="https://threejs.org/manual/#en/installation" target="_blank" rel="noopener">Installation#Addons</a>.</p>
- <pre><code class="language-js">import { TileShadowNodeHelper } from 'three/addons/tsl/shadows/TileShadowNodeHelper.js';</code></pre>
- <div class="container-overview">
- <h2>Constructor</h2>
- <h3 class="name name-method" id="TileShadowNodeHelper" translate="no">new <a href="#TileShadowNodeHelper">TileShadowNodeHelper</a><span class="signature">( tileShadowNode : <span class="param-type"><a href="TileShadowNode.html">TileShadowNode</a></span> )</span> </h3>
- <div class="method">
- <table class="params">
- <tbody>
- <tr>
- <td class="name">
- <strong>tileShadowNode</strong>
- </td>
- <td class="description last">
- <p>The TileShadowNode instance to debug.</p>
- </td>
- </tr>
- </tbody>
- </table>
- </div>
- </div>
- <h2 class="subsection-title">Methods</h2>
- <h3 class="name name-method" id="dispose" translate="no">.<a href="#dispose">dispose</a><span class="signature">()</span> </h3>
- <div class="method">
- <div class="description">
- <p>Removes all debug objects (planes and helpers) from the scene.</p>
- </div>
- </div>
- <h3 class="name name-method" id="init" translate="no">.<a href="#init">init</a><span class="signature">()</span> </h3>
- <div class="method">
- <div class="description">
- <p>Initializes the debug displays (planes and camera helpers).
- Should be called after TileShadowNode has initialized its lights and shadow nodes.</p>
- </div>
- </div>
- <h3 class="name name-method" id="update" translate="no">.<a href="#update">update</a><span class="signature">()</span> </h3>
- <div class="method">
- <div class="description">
- <p>Updates the debug visuals (specifically camera helpers).
- Should be called within TileShadowNode's update method.</p>
- </div>
- </div>
- <h2 class="subsection-title">Source</h2>
- <p>
- <a href="https://github.com/mrdoob/three.js/blob/master/examples/jsm/tsl/shadows/TileShadowNodeHelper.js" translate="no" target="_blank" rel="noopener">examples/jsm/tsl/shadows/TileShadowNodeHelper.js</a>
- </p>
- </article>
- </section>
- <script src="../scripts/linenumber.js"></script>
- <script src="../scripts/page.js"></script>
- </body>
- </html>
|