smooth ball

made the shading on the naval mine smooth
This commit is contained in:
LegendaryDoge30 2025-03-31 13:22:13 +02:00
parent 26dcc1730d
commit f6d2ff3f5a
2 changed files with 6 additions and 3 deletions

View File

@ -61,7 +61,7 @@ public class ResourceManager {
public static final IModelCustom mine_ap = new HFRWavefrontObject(new ResourceLocation(RefStrings.MODID, "models/bombs/ap_mine.obj")).asVBO(); public static final IModelCustom mine_ap = new HFRWavefrontObject(new ResourceLocation(RefStrings.MODID, "models/bombs/ap_mine.obj")).asVBO();
public static final IModelCustom mine_marelet = new HFRWavefrontObject(new ResourceLocation(RefStrings.MODID, "models/bombs/marelet.obj")).asVBO(); public static final IModelCustom mine_marelet = new HFRWavefrontObject(new ResourceLocation(RefStrings.MODID, "models/bombs/marelet.obj")).asVBO();
public static final IModelCustom mine_fat = AdvancedModelLoader.loadModel(new ResourceLocation(RefStrings.MODID, "models/mine_fat.obj")); public static final IModelCustom mine_fat = AdvancedModelLoader.loadModel(new ResourceLocation(RefStrings.MODID, "models/mine_fat.obj"));
public static final IModelCustom mine_naval = AdvancedModelLoader.loadModel(new ResourceLocation(RefStrings.MODID, "models/NMine.obj")); public static final IModelCustom mine_naval = new HFRWavefrontObject(new ResourceLocation(RefStrings.MODID, "models/NMine.obj")).asVBO();
//Oil Pumps //Oil Pumps
@ -451,6 +451,7 @@ public class ResourceManager {
public static final ResourceLocation mine_fat_tex = new ResourceLocation(RefStrings.MODID, "textures/models/mine_fat.png"); public static final ResourceLocation mine_fat_tex = new ResourceLocation(RefStrings.MODID, "textures/models/mine_fat.png");
public static final ResourceLocation mine_naval_tex = new ResourceLocation(RefStrings.MODID, "textures/models/NMine.png"); public static final ResourceLocation mine_naval_tex = new ResourceLocation(RefStrings.MODID, "textures/models/NMine.png");
//Heaters //Heaters
public static final ResourceLocation heater_firebox_tex = new ResourceLocation(RefStrings.MODID, "textures/models/machines/firebox.png"); public static final ResourceLocation heater_firebox_tex = new ResourceLocation(RefStrings.MODID, "textures/models/machines/firebox.png");
public static final ResourceLocation heater_oven_tex = new ResourceLocation(RefStrings.MODID, "textures/models/machines/heating_oven.png"); public static final ResourceLocation heater_oven_tex = new ResourceLocation(RefStrings.MODID, "textures/models/machines/heating_oven.png");

View File

@ -57,8 +57,10 @@ public class RenderLandmine extends TileEntitySpecialRenderer {
if(block == ModBlocks.mine_naval) { if(block == ModBlocks.mine_naval) {
GL11.glScaled(1D, 1D, 1D); GL11.glScaled(1D, 1D, 1D);
GL11.glTranslated(0,0.5,0); GL11.glTranslated(0,0.5,0);
GL11.glShadeModel(GL11.GL_SMOOTH);
bindTexture(ResourceManager.mine_naval_tex); bindTexture(ResourceManager.mine_naval_tex);
ResourceManager.mine_naval.renderAll(); ResourceManager.mine_naval.renderAll();
GL11.glShadeModel(GL11.GL_FLAT);
} }
GL11.glEnable(GL11.GL_CULL_FACE); GL11.glEnable(GL11.GL_CULL_FACE);