Example #1
0
 @Override
 public void render(
     Scene scene,
     Renderer renderer,
     ScreenQuad screenQuad,
     RenderTarget writeBuffer,
     RenderTarget readBuffer,
     long ellapsedTime,
     double deltaTime) {
   if (mShadowPassType == ShadowPassType.APPLY_SHADOW_MAP) {
     mShadowMapMaterial.setShadowMapTexture(mShadowRenderTarget.getTexture());
     super.render(scene, renderer, screenQuad, writeBuffer, readBuffer, ellapsedTime, deltaTime);
   } else {
     renderer.setOverrideViewportDimensions(mShadowMapSize, mShadowMapSize);
     super.render(
         scene, renderer, screenQuad, mShadowRenderTarget, readBuffer, ellapsedTime, deltaTime);
     renderer.clearOverrideViewportDimensions();
   }
 }
 public ATexture getTexture() {
   return mWriteBuffer.getTexture();
 }