提交 e225bd26 编写于 作者: M Mugen87

Docs: Improve UniformUtils page.

上级 fcbb2dba
......@@ -10,15 +10,28 @@
<body>
<h1>[name]</h1>
<p class="desc">Uniform Utilities. Support merging and cloning of uniform variables</p>
<h2>Properties</h2>
<p class="desc">
Provides utility functions for managing uniforms.
</p>
<h2>Methods</h2>
<h3>[method:Object clone]( [param:Object src] )</h3>
<p>
src -- An object representing uniform definitions.<br /><br />
<h2>Methods</h2>
Clones the given uniform definitions by performing a deep-copy. That means if
the [page:Uniform.value value] of a uniform refers to an object like a [page:Vector3]
or [page:Texture], the cloned uniform will refer to a new object reference.
</p>
<h3>[method:Object merge]( [param:Array uniforms] )</h3>
<p>
uniforms -- An array of objects containing uniform definitions.<br /><br />
Merges the given uniform definitions into a single object. Since the method
internally uses [page:.clone](), it performs a deep-copy when producing the
merged uniform definitions.
<h2>Source</h2>
......
......@@ -12,13 +12,24 @@
<p class="desc">Uniform工具. 支持uniform变量的合并和克隆</p>
<h2>属性</h2>
<h2>方法</h2>
<h3>[method:Object clone]( [param:Object src] )</h3>
<p>
src -- An object representing uniform definitions.<br /><br />
<h2>方法</h2>
Clones the given uniform definitions by performing a deep-copy. That means if
the [page:Uniform.value value] of a uniform refers to an object like a [page:Vector3]
or [page:Texture], the cloned uniform will refer to a new object reference.
</p>
<h3>[method:Object merge]( [param:Array uniforms] )</h3>
<p>
uniforms -- An array of objects containing uniform definitions.<br /><br />
Merges the given uniform definitions into a single object. Since the method
internally uses [page:.clone](), it performs a deep-copy when producing the
merged uniform definitions.
<h2>源码</h2>
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册