From 23af1b0a727e1766eb408c98809c58c7de0fd972 Mon Sep 17 00:00:00 2001 From: Tropical <42101043+tropicaaal@users.noreply.github.com> Date: Fri, 27 Mar 2026 19:08:14 -0500 Subject: [PATCH] revert unintentional turnOnGui --- Minecraft.Client/Rendering/Lighting.cpp | 28 +++++-------------------- 1 file changed, 5 insertions(+), 23 deletions(-) diff --git a/Minecraft.Client/Rendering/Lighting.cpp b/Minecraft.Client/Rendering/Lighting.cpp index ada92606a..4182a9fe3 100644 --- a/Minecraft.Client/Rendering/Lighting.cpp +++ b/Minecraft.Client/Rendering/Lighting.cpp @@ -52,27 +52,9 @@ FloatBuffer* Lighting::getBuffer(float a, float b, float c, float d) { } void Lighting::turnOnGui() { - glEnable(GL_LIGHTING); - glEnable(GL_LIGHT0); - glEnable(GL_LIGHT1); - glEnable(GL_COLOR_MATERIAL); - glColorMaterial(GL_FRONT_AND_BACK, GL_AMBIENT_AND_DIFFUSE); - - float a = 0.4f; - float d = 0.6f; - float s = 0.0f; - // big john machine - // (copied from turnon) - RenderManager.StateSetLightDirection(0, 0.129f, 0.965f, 0.224f); - glLight(GL_LIGHT0, GL_DIFFUSE, getBuffer(d, d, d, 1)); - glLight(GL_LIGHT0, GL_AMBIENT, getBuffer(0.0f, 0.0f, 0.0f, 1.0f)); - glLight(GL_LIGHT0, GL_SPECULAR, getBuffer(s, s, s, 1.0f)); - - RenderManager.StateSetLightDirection(1, -0.129f, 0.965f, -0.224f); - glLight(GL_LIGHT1, GL_DIFFUSE, getBuffer(d, d, d, 1)); - glLight(GL_LIGHT1, GL_AMBIENT, getBuffer(0.0f, 0.0f, 0.0f, 1.0f)); - glLight(GL_LIGHT1, GL_SPECULAR, getBuffer(s, s, s, 1.0f)); - - glShadeModel(GL_FLAT); - glLightModel(GL_LIGHT_MODEL_AMBIENT, getBuffer(a, a, a, 1)); + glPushMatrix(); + glRotatef(-30, 0, 1, 0); + glRotatef(165, 1, 0, 0); + turnOn(); + glPopMatrix(); }