UniformsUtils.html 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="utf-8" />
  5. <base href="../../../../" />
  6. <script src="page.js"></script>
  7. <link type="text/css" rel="stylesheet" href="page.css" />
  8. </head>
  9. <body>
  10. <h1>[name]</h1>
  11. <p class="desc">Provides utility functions for managing uniforms.</p>
  12. <h2>Methods</h2>
  13. <h3>[method:Object clone]( [param:Object src] )</h3>
  14. <p>
  15. src -- An object representing uniform definitions.<br /><br />
  16. Clones the given uniform definitions by performing a deep-copy. That means
  17. if the [page:Uniform.value value] of a uniform refers to an object like a
  18. [page:Vector3] or [page:Texture], the cloned uniform will refer to a new
  19. object reference.
  20. </p>
  21. <h3>[method:Object merge]( [param:Array uniforms] )</h3>
  22. <p>
  23. uniforms -- An array of objects containing uniform definitions.<br /><br />
  24. Merges the given uniform definitions into a single object. Since the
  25. method internally uses [page:.clone](), it performs a deep-copy when
  26. producing the merged uniform definitions.
  27. </p>
  28. <h2>Source</h2>
  29. <p>
  30. [link:https://github.com/mrdoob/three.js/blob/master/src/[path].js src/[path].js]
  31. </p>
  32. </body>
  33. </html>