[Minecraft] Wireframe Chams Source

Discussion in 'Source Code' started by Cre3per, Jun 9, 2014.

  1. Cre3per

    Cre3per Addicted Member Inventar

    Joined:
    Oct 22, 2012
    Messages:
    697
    Likes Received:
    2
    In RenderLivingEntity.java

    Code:
                //Wireframe Chams
                GL11.glDisable(GL11.GL_DEPTH_TEST); //See through walls
                GL11.glPolygonMode(GL11.GL_FRONT_AND_BACK, GL11.GL_LINE); //Enable wireframe rendering
                GL11.glColor3f(0, 0, 1); //Set the color to blue
                GL11.glDisable(GL11.GL_TEXTURE_2D); //Disable textures
                    //Fullbright
                    GL11.glDisable(GL11.GL_LIGHTING);
                    GL11.glEnable(GL11.GL_BLEND);
                    GL11.glBlendFunc(GL11.GL_SRC_ALPHA, GL11.GL_DST_ALPHA);
                //Render the wireframe entity
                this.renderModel(par1EntityLivingBase, var16, var15, var13, var11 - var10, var26, var14);
                //Undo changes to improve performance and fix visual bugs
                GL11.glEnable(GL11.GL_DEPTH_TEST);
                GL11.glPolygonMode(GL11.GL_FRONT_AND_BACK, GL11.GL_FILL);
                GL11.glColor3f(1, 1, 1);
                GL11.glEnable(GL11.GL_TEXTURE_2D);
                GL11.glEnable(GL11.GL_LIGHTING);
                GL11.glDisable(GL11.GL_BLEND);
                
                //Render a normal entity
                this.renderModel(par1EntityLivingBase, var16, var15, var13, var11 - var10, var26, var14);
    [​IMG]
     
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.