| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162 |
- <!DOCTYPE html>
- <html lang="en">
- <head>
- <meta charset="utf-8">
- <title>GroundedSkybox - 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>
- <h1 translate="no">GroundedSkybox</h1>
- <section>
- <header>
- </header>
- <article>
- <h2 class="subsection-title">Import</h2>
- <p><span translate="no">GroundedSkybox</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 { getGroundProjectedNormal } from 'three/addons/tsl/utils/GroundedSkybox.js';</code></pre>
- <div class="container-overview">
- </div>
- <h2 class="subsection-title">Static Methods</h2>
- <h3 class="name name-method" id=".getGroundProjectedNormal" translate="no">.<a href="#.getGroundProjectedNormal">getGroundProjectedNormal</a><span class="signature">( radiusNode : <span class="param-type"><a href="Node.html">Node</a>.<float></span>, heightNode : <span class="param-type"><a href="Node.html">Node</a>.<float></span> )</span><span class="type-signature"> : <a href="Node.html">Node</a>.<vec3></span> </h3>
- <div class="method">
- <div class="description">
- <p>Projects the world position onto a sphere whose bottom is clipped by a ground disk,
- then returns a vector usable for sampling an environment cube map.</p>
- </div>
- <table class="params">
- <tbody>
- <tr>
- <td class="name">
- <strong translate="no">radiusNode</strong>
- </td>
- <td class="description last">
- <p>The radius of the projection sphere. Must be large enough to ensure the scene's camera stays inside.</p>
- </td>
- </tr>
- <tr>
- <td class="name">
- <strong translate="no">heightNode</strong>
- </td>
- <td class="description last">
- <p>The height is how far the camera that took the photo was above the ground. A larger value will magnify the downward part of the image.</p>
- </td>
- </tr>
- </tbody>
- </table>
- <dl class="details">
- <dt class="tag-returns"><strong>Returns:</strong> A direction vector for sampling the environment cube map.</dt>
- </dl>
- </div>
- <h2 class="subsection-title">Source</h2>
- <p>
- <a href="https://github.com/mrdoob/three.js/blob/master/examples/jsm/tsl/utils/GroundedSkybox.js" translate="no" target="_blank" rel="noopener">examples/jsm/tsl/utils/GroundedSkybox.js</a>
- </p>
- </article>
- </section>
- <script src="../scripts/linenumber.js"></script>
- <script src="../scripts/page.js"></script>
- </body>
- </html>
|