Skip to content

Commit

Permalink
Update to latest version of three.js; fix example to accommodate thre…
Browse files Browse the repository at this point in the history
…e.js internal changes
  • Loading branch information
brianchirls committed Oct 26, 2014
1 parent bf8c256 commit 65b0990
Show file tree
Hide file tree
Showing 2 changed files with 9,521 additions and 10,629 deletions.
4 changes: 4 additions & 0 deletions examples/demo/threejs-target.html
Original file line number Diff line number Diff line change
Expand Up @@ -232,8 +232,12 @@
was its own render buffer. But Seriously.js changed it, so
we need to make this call to force Three.js to update itself.
Setting render target to anything other than null should do it.
We also need to call resetGLState to force Three.js to use
its own shader
*/
renderer.setRenderTarget(noiseTexture);
renderer.resetGLState();

// render updated 3D scene to render target texture
renderer.render(scene, camera);
Expand Down
Loading

0 comments on commit 65b0990

Please sign in to comment.