mirror of
https://github.com/GTNewHorizons/CodeChickenCore.git
synced 2026-11-17 11:05:24 +00:00
A little cleanup, added glColour to CCRenderState
This commit is contained in:
1 parent
a2d3051270
commit
8518ed3bb0
3 files changed
+10
-8
No files matched your search
@@ -1,5 +1,6 @@
|
||||
package codechicken.lib.render;
|
||||
|
||||
import codechicken.lib.colour.ColourRGBA;
|
||||
import net.minecraft.block.Block;
|
||||
import net.minecraft.client.Minecraft;
|
||||
import net.minecraft.client.renderer.OpenGlHelper;
|
||||
@@ -137,4 +138,9 @@ public class CCRenderState
|
||||
{
|
||||
OpenGlHelper.setLightmapTextureCoords(OpenGlHelper.lightmapTexUnit, brightness&0xFFFF, brightness>>>16);
|
||||
}
|
||||
|
||||
public static void glColour()
|
||||
{
|
||||
new ColourRGBA(colour).glColour();
|
||||
}
|
||||
}
|
||||
@@ -296,7 +296,7 @@ public class RenderUtils
|
||||
if(larger)
|
||||
GL11.glScaled(d, d, d);
|
||||
|
||||
GL11.glColor4f(1.0F, 1.0F, 1.0F, 1.0F);
|
||||
GL11.glColor4f(1, 1, 1, 1);
|
||||
|
||||
entityItem.setEntityItemStack(item);
|
||||
uniformRenderItem.doRenderItem(entityItem, 0, larger ? 0.09 : 0.06, 0, 0, 0);
|
||||
|
||||
Reference in new issue
Block a user