lighting stuffs
This commit is contained in:
parent
86b136664e
commit
4165059284
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because one or more lines are too long
|
@ -17,8 +17,8 @@ public class FPSOptions extends Mod{
|
|||
public BooleanSetting blockEffects = new BooleanSetting("Remove block effects", "", true);
|
||||
public BooleanSetting limit = new BooleanSetting("Limit particles", "", true);
|
||||
public BooleanSetting lowTick = new BooleanSetting("Low animation", "", true);
|
||||
public BooleanSetting lightUpdates = new BooleanSetting("No light updates", "", false);
|
||||
public BooleanSetting noArmSwing = new BooleanSetting("No limb swing", "", true);
|
||||
public BooleanSetting lightUpdates = new BooleanSetting("No light updates", "", true);
|
||||
public BooleanSetting noArmSwing = new BooleanSetting("No limb swing", "", false);
|
||||
public BooleanSetting reducedWater = new BooleanSetting("Reduced water lag", "", true);
|
||||
public CustomRectSettingDraw minSetting = new CustomRectSettingDraw("Minimal settings", ""){
|
||||
@Override
|
||||
|
|
|
@ -21,7 +21,7 @@ public class GuiMainMenu extends GuiScreen {
|
|||
public void drawScreen(final int mouseX, final int mouseY, final float partialTicks) {
|
||||
this.drawDefaultBackground();
|
||||
this.mc.getTextureManager().bindTexture(new ResourceLocation("eagler:gui/background.jpg"));
|
||||
Gui.drawModalRectWithCustomSizedTexture(-60+mouseX/20, 0+mouseY/20, 0.0f, 0.0f, this.width+60, this.height, this.width + 21, this.height + 50);
|
||||
Gui.drawModalRectWithCustomSizedTexture(0, 0, 0.0f, 0.0f, this.width+60, this.height, this.width + 21, this.height + 50);
|
||||
final String s1 = "Copyright " + EnumChatFormatting.RED + EnumChatFormatting.BOLD + "M" + EnumChatFormatting.RESET + "ojang AB";
|
||||
this.drawString(Minecraft.getMinecraft().fontRendererObj, s1, this.width - Minecraft.getMinecraft().fontRendererObj.getStringWidth(s1) - 2, this.height - 10, -1);
|
||||
GlUtils.drawCenteredScaledString("" + EnumChatFormatting.AQUA + EnumChatFormatting.BOLD + "Resent", this.width / 2, this.height / 2 - 50, -1, 3f);
|
||||
|
|
|
@ -657,10 +657,12 @@ public class EntityRenderer implements IResourceManagerReloadListener {
|
|||
}
|
||||
|
||||
public void enableLightmap() {
|
||||
if(!ModManager.fpsOptions.lightUpdates.getValue() || !ModManager.fullbright.isEnabled()){
|
||||
GlStateManager.setActiveTexture(OpenGlHelper.lightmapTexUnit);
|
||||
GlStateManager.enableTexture2D();
|
||||
GlStateManager.setActiveTexture(OpenGlHelper.defaultTexUnit);
|
||||
}
|
||||
}
|
||||
|
||||
/**+
|
||||
* Recompute a random value that is applied to block color in
|
||||
|
@ -674,7 +676,7 @@ public class EntityRenderer implements IResourceManagerReloadListener {
|
|||
}
|
||||
|
||||
private void updateLightmap(float partialTicks) {
|
||||
if (this.lightmapUpdateNeeded && !ModManager.fpsOptions.lightUpdates.getValue()) {
|
||||
if (this.lightmapUpdateNeeded) {
|
||||
this.mc.mcProfiler.startSection("lightTex");
|
||||
WorldClient worldclient = this.mc.theWorld;
|
||||
if (worldclient != null) {
|
||||
|
|
Loading…
Reference in New Issue
Block a user