commit 04f66552f3f8729dca24fc5ca8cf1ec8f4552033
parent 004ea46023a500a13692f6eb83d4b854685338bc
Author: Amin Mesbah <dev@aminmesbah.com>
Date: Fri, 5 Jul 2019 19:23:42 -0700
Use hideous test texture on solid blocks
Diffstat:
1 file changed, 3 insertions(+), 0 deletions(-)
diff --git a/src/game.c b/src/game.c
@@ -589,9 +589,11 @@ void game_update_and_render(struct GameMemory *game_memory, struct GameInput *ga
v3 color;
bool solid = world_tile_in_room_is_solid(current_room->tiles, tile_pos);
+ f32 tex_interp = 0.0f;
if (solid)
{
color = (v3) {0.4f, 0.4f, 0.4f};
+ tex_interp = 1.0f;
}
else
{
@@ -604,6 +606,7 @@ void game_update_and_render(struct GameMemory *game_memory, struct GameInput *ga
.ebo = game_state->renderer.quad_ebo,
.color = color,
.model = model,
+ .tex_interp = tex_interp,
.layer = RENDER_LAYER_TILES,
});
}