Update entity.cpp

Make lighting effect regular entites the same as multi-textured ones.
This commit is contained in:
2024-04-26 20:34:15 -04:00
parent 71ca8f0495
commit ab502fed80

View File

@@ -155,8 +155,10 @@ void Entity::render() {
glTexCoordPointer(2, GL_FLOAT, 0, nullptr);
}
if (!multiTexture)
if (!multiTexture) {
glTexEnvi(GL_TEXTURE_ENV, GL_TEXTURE_ENV_MODE, GL_BLEND);
getGeometry()->draw();
}
if (multiTexture) {
auto* multi = (MultiTexture*) getTexture();