(Program[] ps, boolean renderFinal)
| 4686 | } |
| 4687 | |
| 4688 | private static void renderComposites(Program[] ps, boolean renderFinal) |
| 4689 | { |
| 4690 | if (!isShadowPass) |
| 4691 | { |
| 4692 | GL11.glPushMatrix(); |
| 4693 | GL11.glLoadIdentity(); |
| 4694 | GL11.glMatrixMode(GL11.GL_PROJECTION); |
| 4695 | GL11.glPushMatrix(); |
| 4696 | GL11.glLoadIdentity(); |
| 4697 | GL11.glOrtho(0.0D, 1.0D, 0.0D, 1.0D, 0.0D, 1.0D); |
| 4698 | GL11.glColor4f(1.0F, 1.0F, 1.0F, 1.0F); |
| 4699 | GlStateManager.enableTexture2D(); |
| 4700 | GlStateManager.disableAlpha(); |
| 4701 | GlStateManager.disableBlend(); |
| 4702 | GlStateManager.enableDepth(); |
| 4703 | GlStateManager.depthFunc(519); |
| 4704 | GlStateManager.depthMask(false); |
| 4705 | GlStateManager.disableLighting(); |
| 4706 | |
| 4707 | if (usedShadowDepthBuffers >= 1) |
| 4708 | { |
| 4709 | GlStateManager.setActiveTexture(33988); |
| 4710 | GlStateManager.bindTexture(sfbDepthTextures.get(0)); |
| 4711 | |
| 4712 | if (usedShadowDepthBuffers >= 2) |
| 4713 | { |
| 4714 | GlStateManager.setActiveTexture(33989); |
| 4715 | GlStateManager.bindTexture(sfbDepthTextures.get(1)); |
| 4716 | } |
| 4717 | } |
| 4718 | |
| 4719 | for (int i = 0; i < usedColorBuffers; ++i) |
| 4720 | { |
| 4721 | GlStateManager.setActiveTexture(33984 + colorTextureImageUnit[i]); |
| 4722 | GlStateManager.bindTexture(dfbColorTexturesFlip.getA(i)); |
| 4723 | } |
| 4724 | |
| 4725 | GlStateManager.setActiveTexture(33990); |
| 4726 | GlStateManager.bindTexture(dfbDepthTextures.get(0)); |
| 4727 | |
| 4728 | if (usedDepthBuffers >= 2) |
| 4729 | { |
| 4730 | GlStateManager.setActiveTexture(33995); |
| 4731 | GlStateManager.bindTexture(dfbDepthTextures.get(1)); |
| 4732 | |
| 4733 | if (usedDepthBuffers >= 3) |
| 4734 | { |
| 4735 | GlStateManager.setActiveTexture(33996); |
| 4736 | GlStateManager.bindTexture(dfbDepthTextures.get(2)); |
| 4737 | } |
| 4738 | } |
| 4739 | |
| 4740 | for (int k = 0; k < usedShadowColorBuffers; ++k) |
| 4741 | { |
| 4742 | GlStateManager.setActiveTexture(33997 + k); |
| 4743 | GlStateManager.bindTexture(sfbColorTextures.get(k)); |
| 4744 | } |
| 4745 |
no test coverage detected