Skip to content

Commit e30fec8

Browse files
aardgoosemrdoob
authored andcommitted
Doc updates for dynamic uniform replacement (mrdoob#9816)
* dynamic uniforms are no longer * Add Object3d callback docs * tighten language a bit
1 parent 95a6997 commit e30fec8

File tree

2 files changed

+9
-17
lines changed

2 files changed

+9
-17
lines changed

docs/api/core/Object3D.html

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -138,6 +138,15 @@ <h3>[property:Matrix4 matrixWorld]</h3>
138138
The global transform of the object. If the Object3d has no parent, then it's identical to the local transform.
139139
</div>
140140

141+
<h3>[property:function onBeforeRender]</h3>
142+
<div>
143+
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.
144+
</div>
145+
146+
<h3>[property:function onAfterRender]</h3>
147+
<div>
148+
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.
149+
</div>
141150

142151
<h2>Methods</h2>
143152

docs/api/core/Uniform.html

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -189,23 +189,6 @@ <h3>[property:Object value]</h3>
189189
Current value of the uniform.
190190
</div>
191191

192-
<h3>[property:Boolean dynamic]</h3>
193-
<div>
194-
Sets wether this uniform is updated at each render call when used by a renderer.
195-
You must set this attribute by calling [page:.onUpdate].
196-
</div>
197-
198-
<h2>Methods</h2>
199-
200-
<h3>[method:Uniform onUpdate]( [page:Function callback] ) [page:Uniform this]</h3>
201-
<div>
202-
Set the callback function to update this uniform at each render call. The callback has two optional parameters :
203-
<ul>
204-
<li>[page:Object object] : The current object associated to the [page:Material] using this [page:Uniform]</li>
205-
<li>[page:Camera camera] : The current camera used by the current [page:WebGLRenderer]</li>
206-
</ul>
207-
</div>
208-
209192
<h2>Source</h2>
210193

211194
[link:https://github.com/mrdoob/three.js/blob/master/src/[path].js src/[path].js]

0 commit comments

Comments
 (0)