Add the option to use either Blaze3D or OpenGL rendering APIs

This commit is contained in:
James Seibel
2026-03-10 11:47:40 -05:00
parent 294013eff0
commit 3555133d7f
35 changed files with 965 additions and 1502 deletions
@@ -85,9 +85,14 @@ public class MixinLightTexture
#elif MC_VER < MC_1_21_9
GlTexture glTexture = (GlTexture) this.texture;
renderWrapper.setLightmapId(glTexture.glId(), clientLevel);
#elif MC_VER <= MC_1_21_10
GlTexture glTexture = (GlTexture) this.texture;
this.renderWrapper.setLightmapId(glTexture.glId(), clientLevel);
#else
//int id = NeoforgeTextureUnwrapper.getGlTextureIdFromGpuTexture(this.texture);
//renderWrapper.setLightmapId(id, clientLevel);
// both options are available since the renderer can be changed to either Blaze3D or OpenGL
GlTexture glTexture = (GlTexture) this.texture;
renderWrapper.setLightmapId(glTexture.glId(), clientLevel);
renderWrapper.setLightmapGpuTexture(this.texture, clientLevel);
#endif
}