UniformsUtils.html 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. <!DOCTYPE html>
  2. <html lang="zh">
  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">
  12. Provides utility functions for managing uniforms.
  13. </p>
  14. <h2>方法</h2>
  15. <h3>[method:Object clone]( [param:Object src] )</h3>
  16. <p>
  17. src -- An object representing uniform definitions.<br /><br />
  18. Clones the given uniform definitions by performing a deep-copy. That means if
  19. the [page:Uniform.value value] of a uniform refers to an object like a [page:Vector3]
  20. or [page:Texture], the cloned uniform will refer to a new object reference.
  21. </p>
  22. <h3>[method:Object merge]( [param:Array uniforms] )</h3>
  23. <p>
  24. uniforms -- An array of objects containing uniform definitions.<br /><br />
  25. Merges the given uniform definitions into a single object. Since the method
  26. internally uses [page:.clone](), it performs a deep-copy when producing the
  27. merged uniform definitions.
  28. <h2>源码</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>