Added a little support for two-pass rendering.

This commit is contained in:
Eloraam committed 2011-08-17 10:23:10 +00:00
1 parent f7a3157174
commit ad3d08f0ee
2 files changed
+9

No files matched your search

@@ -77,7 +77,9 @@ public class ForgeHooksClient {
}
}
static int renderPass=-1;
public static void beforeRenderPass(int pass) {
renderPass=pass;
Tessellator.instance=Tessellator.firstInstance;
Tessellator.renderingWorldRenderer=true;
GL11.glBindTexture(3553 /* GL_TEXTURE_2D */, ModLoader
@@ -89,6 +91,7 @@ public class ForgeHooksClient {
}
public static void afterRenderPass(int pass) {
renderPass=-1;
inWorld=false;
for(List l : renderTextureList) {
// TODO: call appropriate client hooks
@@ -51,4 +51,10 @@ public class MinecraftForgeClient {
rb.renderBlockByRenderType(bl,i,j,k);
ForgeHooksClient.afterBlockRender(bl,rb);
}
/** Get the current render pass.
*/
public static int getRenderPass() {
return ForgeHooksClient.renderPass;
}
}