X-Git-Url: https://harrygodden.com/git/?a=blobdiff_plain;f=world_routes.h;h=bd4ce0cf803fa91ac97eec10acfa429e31b1233d;hb=409edea2cf6271956137918e4e0b4f1c2addf620;hp=121f447fd5113d7536e55fdccec2530cabb473a7;hpb=343d594b37f42a94f220a5089c9db36da9da3ab4;p=carveJwlIkooP6JGAAIwe30JlM.git diff --git a/world_routes.h b/world_routes.h index 121f447..bd4ce0c 100644 --- a/world_routes.h +++ b/world_routes.h @@ -1142,6 +1142,10 @@ VG_STATIC void world_routes_update( world_instance *world ) } VG_STATIC void bind_terrain_noise(void); +VG_STATIC void world_bind_light_array( world_instance *world, + GLuint shader, GLuint location, + int slot ); + VG_STATIC void render_world_routes( world_instance *world, camera *cam ) { m4x3f identity_matrix; @@ -1149,7 +1153,11 @@ VG_STATIC void render_world_routes( world_instance *world, camera *cam ) shader_scene_route_use(); shader_scene_route_uTexGarbage(0); - world_link_lighting_ub( world, _shader_scene_route.id, 2 ); + world_link_lighting_ub( world, _shader_scene_route.id ); + world_bind_position_texture( world, _shader_scene_route.id, + _uniform_scene_route_g_world_depth, 2 ); + world_bind_light_array( world, _shader_scene_route.id, + _uniform_scene_route_uLightsArray, 3 ); bind_terrain_noise(); shader_scene_route_uPv( cam->mtx.pv );