disallow ghostly billboards, reenable skybox in scenery demo
This commit is contained in:
@ -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,
|
||||
|
Reference in New Issue
Block a user