diff --git a/apps/demos/scenery/scenes/ingame.c b/apps/demos/scenery/scenes/ingame.c index cd23bf4..6be5306 100644 --- a/apps/demos/scenery/scenes/ingame.c +++ b/apps/demos/scenery/scenes/ingame.c @@ -202,7 +202,7 @@ static void ingame_tick(State *state) { generate_terrain(scn); draw_terrain(scn); - // draw_skybox("/assets/miramar/miramar_*.tga"); + draw_skybox("/assets/miramar/miramar_*.tga"); draw_fog(0.9f, 1.0f, 0.05f, (Color){ 140, 147, 160, 255 }); } diff --git a/src/rendering/twn_billboards.c b/src/rendering/twn_billboards.c index 00d5ce6..3d172cf 100644 --- a/src/rendering/twn_billboards.c +++ b/src/rendering/twn_billboards.c @@ -157,7 +157,11 @@ void finally_draw_billboard_batch(struct MeshBatch const *batch, command.element_count = 6 * (GLsizei)primitives_len; command.range_end = 6 * (GLsizei)primitives_len; - use_texture_mode(textures_get_mode(&ctx.texture_cache, texture_key)); + /* 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,