Skip to content

Allow renderCallback to cancel rendering

Choose a tag to compare

@AVGP AVGP released this 19 Mar 19:32
· 5 commits to master since this release

If you work with WebVR, you may want to cancel out normal rendering in favour of stereoscopic rendering.

Now you can, by making your renderCallback return false.

Example:

function onRender() {
  if(renderVR) {
    vrEffect.render(World.getScene(), World.getCamera());
    return false;
  }
}