mirror of
https://github.com/Minecraft-Community-Edition/client.git
synced 2026-05-23 01:24:32 +00:00
reimplement aether stuff from personal repo
This commit is contained in:
@@ -47,9 +47,9 @@ ItemInHandRenderer::ItemInHandRenderer(Minecraft *mc, bool optimisedMinimap)
|
||||
for( int xp = 0; xp < 16; xp++ )
|
||||
{
|
||||
float u = (15-xp) / 256.0f;
|
||||
float v = (15-yp) / 256.0f;
|
||||
float v = (15-yp) / 384.0f; // 4J - items.png is 256x384, V must use height not width
|
||||
u += 0.5f / 256.0f;
|
||||
v += 0.5f / 256.0f;
|
||||
v += 0.5f / 384.0f;
|
||||
float x0 = xp / 16.0f;
|
||||
float x1 = x0 + 1.0f/16.0f;
|
||||
float y0 = yp / 16.0f;
|
||||
|
||||
Reference in New Issue
Block a user