Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- private void renderLightRuneFx(Vec3Int coord) {
- GL11.glPushMatrix();
- EntityClientPlayerMP player = Minecraft.getMinecraft().thePlayer;
- double offsetX = coord.x - (player.lastTickPosX + (player.posX - player.lastTickPosX) * partialTicks) + 0.5;
- double offsetY = coord.y - (player.lastTickPosY + (player.posY - player.lastTickPosY) * partialTicks) + 5.5;
- double offsetZ = coord.z - (player.lastTickPosZ + (player.posZ - player.lastTickPosZ) * partialTicks) + 0.5;
- GL11.glTranslated(coord.x - player.posX + 0.5, coord.y - player.posY + 5.5, coord.z - player.posZ + 0.5);
- GL11.glColor3f(1f, 0, 0);
- GL11.glRotatef(renderTick, 0, 1, 0);
- GL11.glEnable(GL11.GL_LIGHTING);
- GL11.glLightf(GL11.GL_LIGHT0, GL11.GL_QUADRATIC_ATTENUATION, 1);
- GL11.glLight(GL11.GL_LIGHT0, GL11.GL_POSITION, lightPosition);
- // System.out.println("render at " + coord);
- // System.out.printf("modified: %f %f %f%n", coord.x - player.posX + 0.5, coord.y - player.posY + 0.5, coord.z - player.posZ + 0.5);
- sphere.draw(2, 24, 24);
- GL11.glPopMatrix();
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement