mirror of
https://github.com/MinecraftForge/MinecraftForge.git
synced 2026-11-23 13:39:43 +00:00
Remove emissive items hook, add small utility for bakedquad lighting
This commit is contained in:
1 parent
1936eb1f36
commit
380366e25f
5 files changed
+25
-186
No files matched your search
@@ -247,6 +247,20 @@ public class LightUtil
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public static int getLightOffset(int v)
|
||||
{
|
||||
return (v * 8) + 6;
|
||||
}
|
||||
|
||||
public static void setLightData(BakedQuad q, int light)
|
||||
{
|
||||
int[] data = q.getVertexData();
|
||||
for (int i = 0; i < 4; i++)
|
||||
{
|
||||
data[getLightOffset(i)] = light;
|
||||
}
|
||||
}
|
||||
|
||||
private static final class ItemPipeline
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user