()
| 4622 | } |
| 4623 | |
| 4624 | public static void renderDeferred() |
| 4625 | { |
| 4626 | if (!isShadowPass) |
| 4627 | { |
| 4628 | boolean flag = checkBufferFlip(ProgramDeferredPre); |
| 4629 | |
| 4630 | if (hasDeferredPrograms) |
| 4631 | { |
| 4632 | checkGLError("pre-render Deferred"); |
| 4633 | renderComposites(ProgramsDeferred, false); |
| 4634 | flag = true; |
| 4635 | } |
| 4636 | |
| 4637 | if (flag) |
| 4638 | { |
| 4639 | bindGbuffersTextures(); |
| 4640 | |
| 4641 | for (int i = 0; i < usedColorBuffers; ++i) |
| 4642 | { |
| 4643 | EXTFramebufferObject.glFramebufferTexture2DEXT(36160, 36064 + i, 3553, dfbColorTexturesFlip.getA(i), 0); |
| 4644 | } |
| 4645 | |
| 4646 | if (ProgramWater.getDrawBuffers() != null) |
| 4647 | { |
| 4648 | setDrawBuffers(ProgramWater.getDrawBuffers()); |
| 4649 | } |
| 4650 | else |
| 4651 | { |
| 4652 | setDrawBuffers(dfbDrawBuffers); |
| 4653 | } |
| 4654 | |
| 4655 | GlStateManager.setActiveTexture(33984); |
| 4656 | mc.getTextureManager().bindTexture(TextureMap.locationBlocksTexture); |
| 4657 | } |
| 4658 | } |
| 4659 | } |
| 4660 | |
| 4661 | public static void renderCompositeFinal() |
| 4662 | { |
no test coverage detected