Browse Source

document Uniform.clone() method

aardgoose 8 years ago
parent
commit
cde4453b98
1 changed files with 10 additions and 0 deletions
  1. 10 0
      docs/api/core/Uniform.html

+ 10 - 0
docs/api/core/Uniform.html

@@ -196,6 +196,16 @@
 		Current value of the uniform.
 		</div>
 
+		<h2>Methods</h2>
+
+		<h3>[method:Uniform clone]()</h3>
+		<div>
+		Returns a clone of this uniform.<br />
+		If the uniform's value property is an [page:Object] with a clone() method, this is used, otherwise the value is copied by assigment.
+		Array values are shared between cloned [page:Uniform]s.<br /><br />
+		See [example:webgldeferred_animation WebGL deferred animation] for an example of this method in use.
+		</div>
+
 		<h2>Source</h2>
 
 		[link:https://github.com/mrdoob/three.js/blob/master/src/[path].js src/[path].js]