Пример #1
0
 // TODO: update javadoc when the rendering process becomes the FrameBuffersManager
 public void obtainStaticFBOs() {
   buffers.downSampledScene[4] = renderingProcess.getFBO("scene16");
   buffers.downSampledScene[3] = renderingProcess.getFBO("scene8");
   buffers.downSampledScene[2] = renderingProcess.getFBO("scene4");
   buffers.downSampledScene[1] = renderingProcess.getFBO("scene2");
   buffers.downSampledScene[0] = renderingProcess.getFBO("scene1");
 }
Пример #2
0
 /**
  * In a number of occasions the rendering loop swaps two important FBOs. This method is used to
  * trigger the PostProcessor instance into refreshing the internal references to these FBOs.
  */
 public void refreshSceneOpaqueFBOs() {
   buffers.sceneOpaque = renderingProcess.getFBO("sceneOpaque");
   buffers.sceneOpaquePingPong = renderingProcess.getFBO("sceneOpaquePingPong");
 }
Пример #3
0
  // TODO: update javadoc when the rendering process becomes the FrameBuffersManager
  public void refreshDynamicFBOs() {
    // initial renderings
    buffers.sceneOpaque = renderingProcess.getFBO("sceneOpaque");
    buffers.sceneOpaquePingPong = renderingProcess.getFBO("sceneOpaquePingPong");

    buffers.sceneSkyBand0 = renderingProcess.getFBO("sceneSkyBand0");
    buffers.sceneSkyBand1 = renderingProcess.getFBO("sceneSkyBand1");

    buffers.sceneReflectiveRefractive = renderingProcess.getFBO("sceneReflectiveRefractive");
    // sceneReflected, in case one wonders, is not used by the post-processor.

    // pre-post composite
    buffers.outline = renderingProcess.getFBO("outline");
    buffers.ssao = renderingProcess.getFBO("ssao");
    buffers.ssaoBlurred = renderingProcess.getFBO("ssaoBlurred");

    // initial post-processing
    buffers.lightShafts = renderingProcess.getFBO("lightShafts");
    buffers.initialPost = renderingProcess.getFBO("initialPost");
    buffers.currentReadbackPBO = renderingProcess.getCurrentReadbackPBO();
    buffers.sceneToneMapped = renderingProcess.getFBO("sceneToneMapped");

    buffers.sceneHighPass = renderingProcess.getFBO("sceneHighPass");
    buffers.sceneBloom0 = renderingProcess.getFBO("sceneBloom0");
    buffers.sceneBloom1 = renderingProcess.getFBO("sceneBloom1");
    buffers.sceneBloom2 = renderingProcess.getFBO("sceneBloom2");

    buffers.sceneBlur0 = renderingProcess.getFBO("sceneBlur0");
    buffers.sceneBlur1 = renderingProcess.getFBO("sceneBlur1");

    // final post-processing
    buffers.ocUndistorted = renderingProcess.getFBO("ocUndistorted");
    buffers.sceneFinal = renderingProcess.getFBO("sceneFinal");

    fullScale = buffers.sceneOpaque.dimensions();
  }