Skip to content

Commit

Permalink
TETRAEDGE: Disable walkable area rendering
Browse files Browse the repository at this point in the history
Prevent the rendering of free move/ walkable areas as shadow/shaded areas.
  • Loading branch information
andrewglass committed Mar 17, 2024
1 parent a3eb39f commit 33cb7ec
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions engines/tetraedge/game/characters_shadow_opengl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -131,9 +131,7 @@ void CharactersShadowOpenGL::draw(InGameScene *scene) {
glEnable(GL_BLEND);
renderer->setCurrentColor(scene->shadowColor());

Common::Array<TeIntrusivePtr<TeModel>> &models =
(g_engine->gameType() == TetraedgeEngine::kSyberia ?
scene->zoneModels() : scene->shadowReceivingObjects());
Common::Array<TeIntrusivePtr<TeModel>> &models = scene->shadowReceivingObjects();
for (TeIntrusivePtr<TeModel> model : models) {
if (model->meshes().size() > 0 && model->meshes()[0]->materials().empty()) {
model->meshes()[0]->defaultMaterial(TeIntrusivePtr<Te3DTexture>());
Expand Down

0 comments on commit 33cb7ec

Please sign in to comment.