Răsfoiți Sursa

Merge pull request #10189 from aardgoose/uniforms-clone-doc

document Uniform.clone() method
Mr.doob 8 ani în urmă
părinte
comite
5827c08ba7
1 a modificat fișierele cu 10 adăugiri și 0 ștergeri
  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]