mirror of
https://github.com/MineLittlePony/MineLittlePony.git
synced 2024-12-02 08:48:00 +01:00
Make the reflections slightly more reflection-y
This commit is contained in:
parent
3b18aea157
commit
7c14079412
1 changed files with 13 additions and 4 deletions
|
@ -20,6 +20,8 @@ import com.mojang.authlib.minecraft.MinecraftProfileTexture.Type;
|
||||||
|
|
||||||
import java.util.Set;
|
import java.util.Set;
|
||||||
|
|
||||||
|
import org.lwjgl.opengl.GL11;
|
||||||
|
|
||||||
import static net.minecraft.client.renderer.GlStateManager.*;
|
import static net.minecraft.client.renderer.GlStateManager.*;
|
||||||
|
|
||||||
public class RenderPlayerModel<M extends EntityPlayerModel> extends RenderLivingBase<M> {
|
public class RenderPlayerModel<M extends EntityPlayerModel> extends RenderLivingBase<M> {
|
||||||
|
@ -105,14 +107,21 @@ public class RenderPlayerModel<M extends EntityPlayerModel> extends RenderLiving
|
||||||
player.leftArmPose = ArmPose.EMPTY;
|
player.leftArmPose = ArmPose.EMPTY;
|
||||||
player.rightArmPose = ArmPose.EMPTY;
|
player.rightArmPose = ArmPose.EMPTY;
|
||||||
|
|
||||||
GL11.glPushAttrib(GL11.GL_ALL_ATTRIB_BITS);
|
|
||||||
super.doRender(entity, x, y, z, entityYaw, partialTicks);
|
super.doRender(entity, x, y, z, entityYaw, partialTicks);
|
||||||
popAttrib();
|
|
||||||
|
GL11.glPushAttrib(GL11.GL_ALL_ATTRIB_BITS);
|
||||||
|
|
||||||
pushMatrix();
|
pushMatrix();
|
||||||
scale(1, -1, 1);
|
scale(1, -1, 1);
|
||||||
GL11.glPushAttrib(GL11.GL_ALL_ATTRIB_BITS);
|
|
||||||
|
color(1, 1, 1, 0.3F);
|
||||||
|
|
||||||
super.doRender(entity, x, y, z, entityYaw, partialTicks);
|
super.doRender(entity, x, y, z, entityYaw, partialTicks);
|
||||||
popAttrib();
|
|
||||||
|
color(1, 1, 1, 1);
|
||||||
|
|
||||||
popMatrix();
|
popMatrix();
|
||||||
|
|
||||||
|
popAttrib();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue