Skip to content

Commit

Permalink
another render bug fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
EternalBlueFlame committed Jan 2, 2024
1 parent 741ac43 commit 32e3d3a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
2 changes: 1 addition & 1 deletion src/main/java/fexcraft/tmt/slim/Tessellator.java
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ public static void bindTexture(ResourceLocation uri){
public void drawTexturedVertsWithNormal(TexturedPolygon polygon, float scale){
GL11.glBegin(polygon.vertices.size()==4?GL11.GL_QUADS:polygon.vertices.size()==3?GL11.GL_TRIANGLES:GL11.GL_POLYGON);

if(polygon.vertices.get(3).vector3F==polygon.vertices.get(1).vector3F
if(polygon.vertices.size()==3 || polygon.vertices.get(3).vector3F==polygon.vertices.get(1).vector3F
|| polygon.vertices.get(1).vector3F ==polygon.vertices.get(2).vector3F
|| polygon.vertices.get(3).vector3F ==polygon.vertices.get(2).vector3F){
setNormal(polygon.vertices.get(2).vector3F, polygon.vertices.get(0).vector3F, polygon.vertices.get(1).vector3F);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,10 @@ public class ModelMFPBWigWag extends RollingStockModel {

@Override
public void render(Entity entity, float f0, float f1, float f2, float f3, float f4, float scale){
for(ModelRendererTurbo turbo : groups.get(0)){
turbo.render();
}

for(ModelRendererTurbo turbo : groups.get(1)){
turbo.rotateAngleX=f0*0.0174533f;
turbo.render();
}
super.render(entity, f0, f1, f2, f3, f4, scale);
}

public ModelMFPBWigWag(){
Expand Down

0 comments on commit 32e3d3a

Please sign in to comment.