Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Fluid fluid = FluidRegistry.LAVA;
- IIcon texture = fluid.getStillIcon();
- double uMin = texture.getInterpolatedU(0.0D);
- double uMax = texture.getInterpolatedU(16.0D);
- double vMin = texture.getInterpolatedV(0.0D);
- double vMax = texture.getInterpolatedV(16.0D);
- GL11.glPushMatrix();
- tessellator.startDrawingQuads();
- Minecraft.getMinecraft().renderEngine.bindTexture(TextureMap.locationBlocksTexture);
- tessellator.addVertexWithUV(0, 0, 0, uMin, vMin);
- tessellator.addVertexWithUV(1, 0, 0, uMax, vMin);
- tessellator.addVertexWithUV(1, 0, 1, uMax, vMax);
- tessellator.addVertexWithUV(0, 0, 1, uMin, vMax);
- tessellator.draw();
- GL11.glPopMatrix();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement