added doublesided
This commit is contained in:
1 parent
57b5bace32
commit
02d985bafc
3 files changed
+36
No files matched your search
@@ -206,6 +206,10 @@ public class ShapesRenderer
|
||||
double d = camera1.getPos().x;
|
||||
double e = camera1.getPos().y;
|
||||
double f = camera1.getPos().z;
|
||||
if (shape.doublesided)
|
||||
RenderSystem.disableCull();
|
||||
else
|
||||
RenderSystem.enableCull();
|
||||
RenderSystem.pushMatrix();
|
||||
RenderSystem.translatef((float)(v1.x - d), (float)(v1.y - e), (float)(v1.z - f));
|
||||
RenderSystem.normal3f(0.0F, 1.0F, 0.0F);
|
||||
@@ -259,6 +263,8 @@ public class ShapesRenderer
|
||||
textRenderer.draw(shape.value, text_x, 0.0F, shape.textcolor, false, Rotation3.identity().getMatrix(), immediate, false, shape.textbck, 15728880);
|
||||
immediate.draw();
|
||||
RenderSystem.popMatrix();
|
||||
if (shape.doublesided)
|
||||
RenderSystem.enableCull();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user