Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update rendering calls to CCRenderState #22

Merged
merged 4 commits into from
Oct 10, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
update rendering calls to CCRenderState
Alexdoru committed Oct 5, 2024
commit ddc15a0cd50dccacfe57132d54a3580bb0bc2a47
Original file line number Diff line number Diff line change
@@ -290,8 +290,8 @@ public void render(Entity entity, float f, float f1, float f2, float f3, float f
(tankLeftTop.rotationPointY * 0.1f + 0.05f),
(tankLeftTop.rotationPointZ * 0.1f + 0.15f));
GL11.glPushMatrix();
state.reset();
state.pullLightmap();
state.resetInstance();
state.pullLightmapInstance();
state.useNormals = true;
RenderUtils.renderFluidCuboid(
tankLeft.getFluid(),
@@ -307,8 +307,8 @@ public void render(Entity entity, float f, float f1, float f2, float f3, float f
(tankRightTop.rotationPointY * 0.1f + 0.05f),
(tankRightTop.rotationPointZ * 0.1f + 0.15f));
GL11.glPushMatrix();
state.reset();
state.pullLightmap();
state.resetInstance();
state.pullLightmapInstance();
state.useNormals = true;
RenderUtils.renderFluidCuboid(
tankRight.getFluid(),
@@ -340,8 +340,8 @@ private void renderFluidsInTanks(FluidTank tankLeft, FluidTank tankRight, float
(tankLeftTop.rotationPointY * 0.1f + 0.1f),
(tankLeftTop.rotationPointZ * 0.1f + 0.13f));
// ChickenStuff
state.reset();
state.pullLightmap();
state.resetInstance();
state.pullLightmapInstance();
state.useNormals = true;

Cuboid6 left = new Cuboid6(minX, minY, minZ, maxX, maxY, maxZ);
@@ -362,8 +362,8 @@ private void renderFluidsInTanks(FluidTank tankLeft, FluidTank tankRight, float
(tankRightTop.rotationPointY * 0.1f + 0.1f),
(tankRightTop.rotationPointZ * 0.1f + 0.13f));
// ChickenStuff
state.reset();
state.pullLightmap();
state.resetInstance();
state.pullLightmapInstance();
state.useNormals = true;

Cuboid6 right = new Cuboid6(minX, minY, minZ, maxX, maxY, maxZ);