|
@@ -10,29 +10,26 @@
|
|
<h1>[name]</h1>
|
|
<h1>[name]</h1>
|
|
|
|
|
|
<p class="desc">
|
|
<p class="desc">
|
|
- Provides utility functions for managing uniforms.
|
|
|
|
|
|
+ 提供用于管理uniforms的实用功能。
|
|
</p>
|
|
</p>
|
|
|
|
|
|
- <h2>方法</h2>
|
|
|
|
|
|
+ <h2>方法(Method)</h2>
|
|
|
|
|
|
<h3>[method:Object clone]( [param:Object src] )</h3>
|
|
<h3>[method:Object clone]( [param:Object src] )</h3>
|
|
<p>
|
|
<p>
|
|
- src -- An object representing uniform definitions.<br /><br />
|
|
|
|
|
|
+ src -- 表示定义uniforms的对象的路径<br /><br />
|
|
|
|
|
|
- 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.
|
|
|
|
|
|
+ 通过执行深层复制克隆给定的统一定义。
|
|
|
|
+ 这意味着如果uniform的[page:Uniform.value 值]引用[page:Vector3]或[page:Texture]之类的对象,则克隆的uniform将引用新的对象引用。
|
|
</p>
|
|
</p>
|
|
|
|
|
|
<h3>[method:Object merge]( [param:Array uniforms] )</h3>
|
|
<h3>[method:Object merge]( [param:Array uniforms] )</h3>
|
|
<p>
|
|
<p>
|
|
- uniforms -- An array of objects containing uniform definitions.<br /><br />
|
|
|
|
|
|
+ uniforms -- 包含uniforms定义的对象数组<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.
|
|
|
|
|
|
+ 将给定的统一定义合并到一个对象中。由于该方法在内部使用[page:.clone](),因此它在生成合并的统一定义时执行深度复制。
|
|
|
|
|
|
- <h2>源码</h2>
|
|
|
|
|
|
+ <h2>源代码(Source)</h2>
|
|
|
|
|
|
<p>
|
|
<p>
|
|
[link:https://github.com/mrdoob/three.js/blob/master/src/[path].js src/[path].js]
|
|
[link:https://github.com/mrdoob/three.js/blob/master/src/[path].js src/[path].js]
|