projects
/
carveJwlIkooP6JGAAIwe30JlM.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fixes some artifacting
[carveJwlIkooP6JGAAIwe30JlM.git]
/
world_routes.h
diff --git
a/world_routes.h
b/world_routes.h
index 795f57b9f3eae6143abb3eb520c589b1c05943e8..7d4ef7c7778b8fd53cf17622595d9371aea05dd8 100644
(file)
--- a/
world_routes.h
+++ b/
world_routes.h
@@
-1132,7
+1132,7
@@
VG_STATIC void world_routes_update(void)
}
VG_STATIC void bind_terrain_noise(void);
}
VG_STATIC void bind_terrain_noise(void);
-VG_STATIC void render_world_routes(
m4x4f projection, v3f camera
)
+VG_STATIC void render_world_routes(
camera *cam
)
{
m4x3f identity_matrix;
m4x3_identity( identity_matrix );
{
m4x3f identity_matrix;
m4x3_identity( identity_matrix );
@@
-1142,9
+1142,10
@@
VG_STATIC void render_world_routes( m4x4f projection, v3f camera )
shader_link_standard_ub( _shader_route.id, 2 );
bind_terrain_noise();
shader_link_standard_ub( _shader_route.id, 2 );
bind_terrain_noise();
- shader_route_uPv( projection );
+ shader_route_uPv( cam->mtx.pv );
+ shader_route_uPvmPrev( cam->mtx_prev.pv );
shader_route_uMdl( identity_matrix );
shader_route_uMdl( identity_matrix );
- shader_route_uCamera( cam
era
);
+ shader_route_uCamera( cam
->transform[3]
);
mesh_bind( &world.mesh_route_lines );
mesh_bind( &world.mesh_route_lines );