| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576 |
- <!DOCTYPE html>
- <html lang="en">
- <head>
- <meta charset="utf-8">
- <title>UniformsUtils - 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">UniformsUtils</h1>
- <section>
- <header>
- </header>
- <article>
- <div class="container-overview">
- <div class="description"><p>Provides utility functions for managing uniforms.</p></div>
- </div>
- <h2 class="subsection-title">Static Methods</h2>
- <h3 class="name name-method" id=".cloneUniforms" translate="no">.<a href="#.cloneUniforms">cloneUniforms</a><span class="signature">( src : <span class="param-type">Object</span> )</span><span class="type-signature"> : Object</span> </h3>
- <div class="method">
- <div class="description">
- <p>Clones the given uniform definitions by performing a deep-copy. That means
- if the value of a uniform refers to an object like a Vector3 or Texture,
- the cloned uniform will refer to a new object reference.</p>
- </div>
- <table class="params">
- <tbody>
- <tr>
- <td class="name">
- <strong>src</strong>
- </td>
- <td class="description last">
- <p>An object representing uniform definitions.</p>
- </td>
- </tr>
- </tbody>
- </table>
- <dl class="details">
- <dt class="tag-returns"><strong>Returns:</strong> The cloned uniforms.</dt>
- </dl>
- </div>
- <h3 class="name name-method" id=".mergeUniforms" translate="no">.<a href="#.mergeUniforms">mergeUniforms</a><span class="signature">( uniforms : <span class="param-type">Array</span> )</span><span class="type-signature"> : Object</span> </h3>
- <div class="method">
- <div class="description">
- <p>Merges the given uniform definitions into a single object. Since the
- method internally uses cloneUniforms(), it performs a deep-copy when
- producing the merged uniform definitions.</p>
- </div>
- <table class="params">
- <tbody>
- <tr>
- <td class="name">
- <strong>uniforms</strong>
- </td>
- <td class="description last">
- <p>An array of objects containing uniform definitions.</p>
- </td>
- </tr>
- </tbody>
- </table>
- <dl class="details">
- <dt class="tag-returns"><strong>Returns:</strong> The merged uniforms.</dt>
- </dl>
- </div>
- <h2 class="subsection-title">Source</h2>
- <p>
- <a href="https://github.com/mrdoob/three.js/blob/master/src/renderers/shaders/UniformsUtils.js" translate="no" target="_blank" rel="noopener">src/renderers/shaders/UniformsUtils.js</a>
- </p>
- </article>
- </section>
- <script src="../scripts/linenumber.js"></script>
- <script src="../scripts/page.js"></script>
- </body>
- </html>
|