X-Git-Url: https://harrygodden.com/git/?a=blobdiff_plain;f=world_render.h;h=540e0be2aa5bb85f29e0d0ddddd78c6d085f9e5b;hb=e311bbe2fa903a7e2a922f202f389b799193195d;hp=3050a69e63213525dac25dac6627dfbd3aed6f7d;hpb=df9f72d2912a5424d37dfdb02f76aba8f1ed4df1;p=carveJwlIkooP6JGAAIwe30JlM.git diff --git a/world_render.h b/world_render.h index 3050a69..540e0be 100644 --- a/world_render.h +++ b/world_render.h @@ -12,6 +12,7 @@ #include "shaders/scene_standard.h" #include "shaders/scene_standard_alphatest.h" +#include "shaders/scene_foliage.h" #include "shaders/scene_override.h" #include "shaders/scene_cubemapped.h" #include "shaders/scene_vertex_blend.h" @@ -21,6 +22,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; @@ -74,10 +76,16 @@ static void world_bind_light_index( world_instance *world, int slot ); static void render_world_position( world_instance *world, camera *cam ); 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( world_instance *world, camera *cam, + int stenciled, int viewing_from_gate, + int with_water, int with_cubemaps ); 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, + camera *cam, + ent_spawn *dest_spawn, v4f map_info ); #define WORLD_BIND_LIGHT_BUFFERS_UB0_TEX234( WORLD, SHADER ) \ world_link_lighting_ub( WORLD, _shader_##SHADER.id ); \