public class RenderHelper
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private static java.nio.FloatBuffer |
colorBuffer
Float buffer used to set OpenGL material colors
|
private static Vec3 |
LIGHT0_POS |
private static Vec3 |
LIGHT1_POS |
Constructor and Description |
---|
RenderHelper() |
Modifier and Type | Method and Description |
---|---|
static void |
disableStandardItemLighting()
Disables the OpenGL lighting properties enabled by enableStandardItemLighting
|
static void |
enableGUIStandardItemLighting()
Sets OpenGL lighting for rendering blocks as items inside GUI screens (such as containers).
|
static void |
enableStandardItemLighting()
Sets the OpenGL lighting properties to the values used when rendering blocks as items
|
private static java.nio.FloatBuffer |
setColorBuffer(double p_74517_0_,
double p_74517_2_,
double p_74517_4_,
double p_74517_6_)
Update and return colorBuffer with the RGBA values passed as arguments
|
private static java.nio.FloatBuffer |
setColorBuffer(float p_74521_0_,
float p_74521_1_,
float p_74521_2_,
float p_74521_3_)
Update and return colorBuffer with the RGBA values passed as arguments
|
private static java.nio.FloatBuffer colorBuffer
private static final Vec3 LIGHT0_POS
private static final Vec3 LIGHT1_POS
public static void disableStandardItemLighting()
public static void enableStandardItemLighting()
private static java.nio.FloatBuffer setColorBuffer(double p_74517_0_, double p_74517_2_, double p_74517_4_, double p_74517_6_)
private static java.nio.FloatBuffer setColorBuffer(float p_74521_0_, float p_74521_1_, float p_74521_2_, float p_74521_3_)
public static void enableGUIStandardItemLighting()