File: module-UniformsUtils.md | Updated: 11/15/2025
Provides utility functions for managing uniforms.
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.
src | An object representing uniform definitions.
---|---
Returns: The cloned uniforms.
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.
uniforms | An array of objects containing uniform definitions.
---|---
Returns: The merged uniforms.