-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathRenderSystemUtil.java
More file actions
35 lines (28 loc) · 909 Bytes
/
RenderSystemUtil.java
File metadata and controls
35 lines (28 loc) · 909 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
package hellfirepvp.observerlib.client.util;
import com.mojang.blaze3d.systems.RenderSystem;
import org.lwjgl.opengl.GL11;
/**
* This class is part of the ObserverLib Mod
* The complete source code for this mod can be found on github.
* Class: RenderSystemUtil
* Created by HellFirePvP
* Date: 27.05.2022 / 23:04
*/
public class RenderSystemUtil {
public static void enableAlphaTest() {
RenderSystem.assertOnRenderThread();
GL11.glEnable(GL11.GL_ALPHA_TEST);
}
public static void disableAlphaTest() {
RenderSystem.assertOnRenderThread();
GL11.glDisable(GL11.GL_ALPHA_TEST);
}
public static void enableLighting() {
RenderSystem.assertOnRenderThread();
GL11.glEnable(GL11.GL_LIGHTING);
}
public static void disableLighting() {
RenderSystem.assertOnRenderThread();
GL11.glDisable(GL11.GL_LIGHTING);
}
}