grid based
[carveJwlIkooP6JGAAIwe30JlM.git] / world_routes.h
index bd4ce0cf803fa91ac97eec10acfa429e31b1233d..34ba50bd210e40e0f1ef4ee1c1ddbf8c7d439356 100644 (file)
@@ -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 );