Browse Source

Doc updates for dynamic uniform replacement (#9816)

* dynamic uniforms are no longer

* Add Object3d callback docs

* tighten language a bit
aardgoose 8 years ago
parent
commit
e30fec842e
2 changed files with 9 additions and 17 deletions
  1. 9 0
      docs/api/core/Object3D.html
  2. 0 17
      docs/api/core/Uniform.html

+ 9 - 0
docs/api/core/Object3D.html

@@ -138,6 +138,15 @@
 		The global transform of the object. If the Object3d has no parent, then it's identical to the local transform.
 		The global transform of the object. If the Object3d has no parent, then it's identical to the local transform.
 		</div>
 		</div>
 
 
+		<h3>[property:function onBeforeRender]</h3>
+		<div>
+		An optional callback that is executed immediately before the Object3D is rendered.  This function is called with the following parameters: renderer, scene, camera, geometry, material, group.
+		</div>
+
+		<h3>[property:function onAfterRender]</h3>
+		<div>
+		An optional callback that is executed immediately after the Object3D is rendered.  This function is called with the following parameters: renderer, scene, camera, geometry, material, group.
+		</div>
 
 
 		<h2>Methods</h2>
 		<h2>Methods</h2>
 
 

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

@@ -189,23 +189,6 @@
 		Current value of the uniform.
 		Current value of the uniform.
 		</div>
 		</div>
 
 
-		<h3>[property:Boolean dynamic]</h3>
-		<div>
-		Sets wether this uniform is updated at each render call when used by a renderer.
-		You must set this attribute by calling [page:.onUpdate].
-		</div>
-
-		<h2>Methods</h2>
-
-		<h3>[method:Uniform onUpdate]( [page:Function callback] ) [page:Uniform this]</h3>
-		<div>
-		Set the callback function to update this uniform at each render call. The callback has two optional parameters :
-		<ul>
-			<li>[page:Object object] : The current object associated to the [page:Material] using this [page:Uniform]</li>
-			<li>[page:Camera camera] : The current camera used by the current [page:WebGLRenderer]</li>
-		</ul>
-		</div>
-
 		<h2>Source</h2>
 		<h2>Source</h2>
 
 
 		[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]