UniformsUtils.html 1.2 KB

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