X-Git-Url: https://harrygodden.com/git/?a=blobdiff_plain;f=world_routes.h;h=34ba50bd210e40e0f1ef4ee1c1ddbf8c7d439356;hb=98b9bcf0e10bc02cf679d03fa269613e140ba878;hp=bd4ce0cf803fa91ac97eec10acfa429e31b1233d;hpb=791f807111a1f740f745c67db642aa7a8bee56e8;p=carveJwlIkooP6JGAAIwe30JlM.git diff --git a/world_routes.h b/world_routes.h index bd4ce0c..34ba50b 100644 --- a/world_routes.h +++ b/world_routes.h @@ -1145,6 +1145,9 @@ 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 world_bind_light_index( world_instance *world, + GLuint shader, GLuint location, + int slot ); VG_STATIC void render_world_routes( world_instance *world, camera *cam ) { @@ -1158,6 +1161,8 @@ VG_STATIC void render_world_routes( world_instance *world, camera *cam ) _uniform_scene_route_g_world_depth, 2 ); world_bind_light_array( world, _shader_scene_route.id, _uniform_scene_route_uLightsArray, 3 ); + world_bind_light_index( world, _shader_scene_route.id, + _uniform_scene_route_uLightsIndex, 4 ); bind_terrain_noise(); shader_scene_route_uPv( cam->mtx.pv );