浏览代码

Doc updates for dynamic uniform replacement (#9816)

* dynamic uniforms are no longer

* Add Object3d callback docs

* tighten language a bit
aardgoose 8 年之前
父节点
当前提交
e30fec842e
共有 2 个文件被更改,包括 9 次插入17 次删除
  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.
 		</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>
 

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

@@ -189,23 +189,6 @@
 		Current value of the uniform.
 		</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>
 
 		[link:https://github.com/mrdoob/three.js/blob/master/src/[path].js src/[path].js]