mirror of
https://github.com/Sollace/Unicopia.git
synced 2025-02-07 22:16:44 +01:00
Fixed shields appearing invisible when looking from the inside
This commit is contained in:
parent
700f2a50e4
commit
d25696bfb9
1 changed files with 2 additions and 0 deletions
|
@ -127,6 +127,7 @@ public class SphereParticle extends Particle implements Attachment {
|
|||
|
||||
float[] color = ColorHelper.changeSaturation(red, green, blue, 4);
|
||||
RenderSystem.setShaderColor(color[0], color[1], color[2], alpha / 3F);
|
||||
RenderSystem.disableCull();
|
||||
|
||||
VertexConsumerProvider.Immediate immediate = MinecraftClient.getInstance().getBufferBuilders().getEntityVertexConsumers();
|
||||
VertexConsumer buffer = immediate.getBuffer(RenderLayers.getMagicNoColor());
|
||||
|
@ -150,6 +151,7 @@ public class SphereParticle extends Particle implements Attachment {
|
|||
|
||||
prevRadius = radius;
|
||||
|
||||
RenderSystem.enableCull();
|
||||
RenderSystem.setShaderColor(1, 1, 1, 1);
|
||||
RenderSystem.setShader(GameRenderer::getParticleShader);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue