X-Git-Url: https://harrygodden.com/git/?a=blobdiff_plain;f=world.h;h=2fa7ce4f5ada984e5e4059d477e3e9eeb0823be7;hb=4625f91b85d2badbb719a7f5bcaa2426af25911b;hp=b76086f8c152a798bbcd65022028ba43ae918747;hpb=5f4eb3866525724188461589485ac1aa50d08870;p=carveJwlIkooP6JGAAIwe30JlM.git diff --git a/world.h b/world.h index b76086f..2fa7ce4 100644 --- a/world.h +++ b/world.h @@ -86,6 +86,8 @@ static struct gworld * instance_cache; u32 instance_cache_count, instance_cache_cap; + + v3f render_gate_pos; } world; @@ -736,6 +738,10 @@ static void render_world_gates( m4x4f projection, m4x3f camera ) } render_gate( &world.routes.gates[id].gate, camera ); + v3_lerp( world.render_gate_pos, + world.routes.gates[id].gate.co[0], + 1.0f, + world.render_gate_pos ); } static void render_world( m4x4f projection, m4x3f camera )