diff --git a/src/rendering/twn_triangles.c b/src/rendering/twn_triangles.c index 06d329a..477926c 100644 --- a/src/rendering/twn_triangles.c +++ b/src/rendering/twn_triangles.c @@ -100,6 +100,12 @@ void finally_draw_uncolored_space_traingle_batch(const MeshBatch *batch, command.primitive_count = (GLsizei)(3 * primitives_len); + /* TODO: support alpha blended case, with distance sort */ + TextureMode mode = textures_get_mode(&ctx.texture_cache, texture_key); + if (mode == TEXTURE_MODE_GHOSTLY) + mode = TEXTURE_MODE_SEETHROUGH; + use_texture_mode(mode); + DeferredCommand final_command = { .type = DEFERRED_COMMAND_TYPE_DRAW, .draw = command