X-Git-Url: https://harrygodden.com/git/?a=blobdiff_plain;f=world_render.h;h=d7ea51976729012e95dc76dd01e61ab67e108deb;hb=63fe317d7db724162561da52aa382c82ac3c29be;hp=ac0a0f2a82160b1e9e5e8e1d5ff98cc854031a27;hpb=b405845ac2cc8eb8e227eb5785f48f5dde9b0f26;p=carveJwlIkooP6JGAAIwe30JlM.git diff --git a/world_render.h b/world_render.h index ac0a0f2..d7ea519 100644 --- a/world_render.h +++ b/world_render.h @@ -21,6 +21,7 @@ #include "shaders/scene_position.h" #include "shaders/scene_font.h" #include "shaders/model_sky.h" +#include "shaders/model_sky_space.h" static const float k_world_light_cube_size = 8.0f; @@ -78,5 +79,17 @@ 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); +static void render_world_override( world_instance *world, + world_instance *lighting_source, + m4x3f mmdl ); + +#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 */