mirror of
https://github.com/GTNewHorizons/Avaritia.git
synced 2026-11-21 20:52:15 +00:00
Replace Universium shader with GTNHLib (#67)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> Co-authored-by: Martin Robertz <[email protected]>
This commit is contained in:
32 files changed
+35
-957
No files matched your search
@@ -20,6 +20,8 @@ import net.minecraft.util.ResourceLocation;
|
||||
|
||||
import org.lwjgl.opengl.GL11;
|
||||
|
||||
import com.gtnewhorizon.gtnhlib.client.renderer.postprocessing.shaders.UniversiumShader;
|
||||
|
||||
import fox.spiteful.avaritia.items.ItemArmorInfinity;
|
||||
import fox.spiteful.avaritia.items.LudicrousItems;
|
||||
|
||||
@@ -175,14 +177,14 @@ public class ModelArmorInfinity extends ModelBiped {
|
||||
super.render(entity, f, f1, f2, f3, f4, f5);
|
||||
}
|
||||
|
||||
if (!CosmicRenderShenanigans.inventoryRender) {
|
||||
if (!UniversiumShader.isRenderingInInventory()) {
|
||||
mc.entityRenderer.enableLightmap(15.0);
|
||||
}
|
||||
GL11.glEnable(GL11.GL_LIGHTING);
|
||||
GL11.glColor4d(1, 1, 1, 1);
|
||||
|
||||
// WINGS
|
||||
if (isFlying && !CosmicRenderShenanigans.inventoryRender) {
|
||||
if (isFlying && !UniversiumShader.isRenderingInInventory()) {
|
||||
this.setWings();
|
||||
mc.renderEngine.bindTexture(wingTex);
|
||||
super.render(entity, f, f1, f2, f3, f4, f5);
|
||||
@@ -209,7 +211,7 @@ public class ModelArmorInfinity extends ModelBiped {
|
||||
GL11.glDepthMask(true);
|
||||
GL11.glDisable(GL11.GL_BLEND);
|
||||
GL11.glEnable(GL11.GL_ALPHA_TEST);
|
||||
if (!CosmicRenderShenanigans.inventoryRender) {
|
||||
if (!UniversiumShader.isRenderingInInventory()) {
|
||||
mc.entityRenderer.enableLightmap(0.0);
|
||||
}
|
||||
GL11.glEnable(GL11.GL_LIGHTING);
|
||||
|
||||
Reference in new issue
Block a user