Пример #1
0
 private void renderCamera(
     long activity_ptr, GVRScene scene, GVRCamera camera, GVRRenderBundle renderBundle) {
   renderCamera(
       activity_ptr,
       scene.getNative(),
       camera.getNative(),
       renderBundle.getMaterialShaderManager().getNative(),
       renderBundle.getPostEffectShaderManager().getNative(),
       renderBundle.getPostEffectRenderTextureA().getNative(),
       renderBundle.getPostEffectRenderTextureB().getNative());
 }
Пример #2
0
  /** Called once per frame, before {@link #onDrawEyeView(int, float)}. */
  void onDrawFrame() {

    GVRPerspectiveCamera centerCamera = mMainScene.getMainCameraRig().getCenterCamera();
    cull(
        mMainScene.getNative(),
        centerCamera.getNative(),
        mRenderBundle.getMaterialShaderManager().getNative());

    if (mCurrentEye == 1) {
      mActivity.setCamera(mMainScene.getMainCameraRig().getLeftCamera());
    } else {
      mActivity.setCamera(mMainScene.getMainCameraRig().getRightCamera());
    }
  }