small compression
[carveJwlIkooP6JGAAIwe30JlM.git] / world_render.h
index a28221fb2af9717ce4f9ba6a79cfe123b4685e4e..3050a69e63213525dac25dac6627dfbd3aed6f7d 100644 (file)
@@ -77,5 +77,15 @@ static void render_world_depth( world_instance *world, camera *cam );
 static void render_world( world_instance *world, camera *cam, 
                              int layer_depth );
 static void render_world_cubemaps( world_instance *world );
+static void bind_terrain_noise(void);
+
+#define WORLD_BIND_LIGHT_BUFFERS_UB0_TEX234( WORLD, SHADER )            \
+   world_link_lighting_ub( WORLD, _shader_##SHADER.id );                \
+   world_bind_position_texture( WORLD, _shader_##SHADER.id,             \
+                                _uniform_##SHADER##_g_world_depth, 2 ); \
+   world_bind_light_array( WORLD, _shader_##SHADER.id,                  \
+                           _uniform_##SHADER##_uLightsArray, 3 );       \
+   world_bind_light_index( WORLD, _shader_##SHADER.id,                  \
+                           _uniform_##SHADER##_uLightsIndex, 4 );
 
 #endif /* WORLD_RENDER_H */