| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151 |
- <!DOCTYPE html>
- <html lang="en">
- <head>
- <meta charset="utf-8">
- <title>TransitionNode - 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="Node.html">Node</a> → <a href="TempNode.html">TempNode</a> → </p>
- <h1 translate="no">TransitionNode</h1>
- <section>
- <header>
- <div class="class-description"><p>Post processing node for creating a transition effect between scenes.</p></div>
- </header>
- <article>
- <h2 class="subsection-title">Import</h2>
- <p><span translate="no">TransitionNode</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 { transition } from 'three/addons/tsl/display/TransitionNode.js';</code></pre>
- <div class="container-overview">
- <h2>Constructor</h2>
- <h3 class="name name-method" id="TransitionNode" translate="no">new <a href="#TransitionNode">TransitionNode</a><span class="signature">( textureNodeA : <span class="param-type"><a href="TextureNode.html">TextureNode</a></span>, textureNodeB : <span class="param-type"><a href="TextureNode.html">TextureNode</a></span>, mixTextureNode : <span class="param-type"><a href="TextureNode.html">TextureNode</a></span>, mixRatioNode : <span class="param-type"><a href="Node.html">Node</a>.<float></span>, thresholdNode : <span class="param-type"><a href="Node.html">Node</a>.<float></span>, useTextureNode : <span class="param-type"><a href="Node.html">Node</a>.<float></span> )</span> </h3>
- <div class="method">
- <div class="description">
- <p>Constructs a new transition node.</p>
- </div>
- <table class="params">
- <tbody>
- <tr>
- <td class="name">
- <strong>textureNodeA</strong>
- </td>
- <td class="description last">
- <p>A texture node that represents the beauty pass of the first scene.</p>
- </td>
- </tr>
- <tr>
- <td class="name">
- <strong>textureNodeB</strong>
- </td>
- <td class="description last">
- <p>A texture node that represents the beauty pass of the second scene.</p>
- </td>
- </tr>
- <tr>
- <td class="name">
- <strong>mixTextureNode</strong>
- </td>
- <td class="description last">
- <p>A texture node that defines how the transition effect should look like.</p>
- </td>
- </tr>
- <tr>
- <td class="name">
- <strong>mixRatioNode</strong>
- </td>
- <td class="description last">
- <p>The interpolation factor that controls the mix.</p>
- </td>
- </tr>
- <tr>
- <td class="name">
- <strong>thresholdNode</strong>
- </td>
- <td class="description last">
- <p>Can be used to tweak the linear interpolation.</p>
- </td>
- </tr>
- <tr>
- <td class="name">
- <strong>useTextureNode</strong>
- </td>
- <td class="description last">
- <p>Whether <code>mixTextureNode</code> should influence the transition or not.</p>
- </td>
- </tr>
- </tbody>
- </table>
- </div>
- </div>
- <h2 class="subsection-title">Properties</h2>
- <div class="member">
- <h3 class="name" id="mixRatioNode" translate="no">.<a href="#mixRatioNode">mixRatioNode</a><span class="type-signature"> : <a href="Node.html">Node</a>.<float></span> </h3>
- <div class="description">
- <p>The interpolation factor that controls the mix.</p>
- </div>
- </div>
- <div class="member">
- <h3 class="name" id="mixTextureNode" translate="no">.<a href="#mixTextureNode">mixTextureNode</a><span class="type-signature"> : <a href="TextureNode.html">TextureNode</a></span> </h3>
- <div class="description">
- <p>A texture that defines how the transition effect should look like.</p>
- </div>
- </div>
- <div class="member">
- <h3 class="name" id="textureNodeA" translate="no">.<a href="#textureNodeA">textureNodeA</a><span class="type-signature"> : <a href="TextureNode.html">TextureNode</a></span> </h3>
- <div class="description">
- <p>A texture node that represents the beauty pass of the first scene.</p>
- </div>
- </div>
- <div class="member">
- <h3 class="name" id="textureNodeB" translate="no">.<a href="#textureNodeB">textureNodeB</a><span class="type-signature"> : <a href="TextureNode.html">TextureNode</a></span> </h3>
- <div class="description">
- <p>A texture node that represents the beauty pass of the second scene.</p>
- </div>
- </div>
- <div class="member">
- <h3 class="name" id="thresholdNode" translate="no">.<a href="#thresholdNode">thresholdNode</a><span class="type-signature"> : <a href="Node.html">Node</a>.<float></span> </h3>
- <div class="description">
- <p>Can be used to tweak the linear interpolation.</p>
- </div>
- </div>
- <div class="member">
- <h3 class="name" id="useTextureNode" translate="no">.<a href="#useTextureNode">useTextureNode</a><span class="type-signature"> : <a href="Node.html">Node</a>.<float></span> </h3>
- <div class="description">
- <p>Whether <code>mixTextureNode</code> should influence the transition or not.</p>
- </div>
- </div>
- <h2 class="subsection-title">Methods</h2>
- <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"> : ShaderCallNodeInternal</span> </h3>
- <div class="method">
- <div class="description">
- <p>This method is used to setup the effect's TSL code.</p>
- </div>
- <table class="params">
- <tbody>
- <tr>
- <td class="name">
- <strong>builder</strong>
- </td>
- <td class="description last">
- <p>The current node builder.</p>
- </td>
- </tr>
- </tbody>
- </table>
- <dl class="details">
- <dt class="tag-overrides"><strong>Overrides:</strong> <a href="TempNode.html#setup">TempNode#setup</a></dt>
- </dl>
- </div>
- <h2 class="subsection-title">Source</h2>
- <p>
- <a href="https://github.com/mrdoob/three.js/blob/master/examples/jsm/tsl/display/TransitionNode.js" translate="no" target="_blank" rel="noopener">examples/jsm/tsl/display/TransitionNode.js</a>
- </p>
- </article>
- </section>
- <script src="../scripts/linenumber.js"></script>
- <script src="../scripts/page.js"></script>
- </body>
- </html>
|