Guest User

Untitled

a guest
Nov 9th, 2018
116
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.47 KB | None | 0 0
  1. public static void setLightMap(Entity e, BlockPos pos)
  2. {
  3. e.posX = pos.getX();
  4. e.posY = pos.getY();
  5. e.posZ = pos.getZ();
  6. setLightMap(e);
  7. }
  8.  
  9. public static void setLightMap(Entity e)
  10. {
  11. int i = e.getBrightnessForRender();
  12.  
  13. if (e.isBurning())
  14. {
  15. i = 15728880;
  16. }
  17.  
  18. int j = i % 65536;
  19. int k = i / 65536;
  20. OpenGlHelper.setLightmapTextureCoords(OpenGlHelper.lightmapTexUnit, (float)j, (float)k);
  21. }
Advertisement
Add Comment
Please, Sign In to add comment