2 * Copyright (C) 2021-2023 Mt.ZERO Software, Harry Godden - All Rights Reserved
8 #define WORLD_CUBEMAP_RES 32
13 #include "shaders/scene_standard.h"
14 #include "shaders/scene_standard_alphatest.h"
15 #include "shaders/scene_cubemapped.h"
16 #include "shaders/scene_vertex_blend.h"
17 #include "shaders/scene_terrain.h"
18 #include "shaders/scene_fxglow.h"
19 #include "shaders/scene_depth.h"
20 #include "shaders/scene_position.h"
21 #include "shaders/scene_font.h"
22 #include "shaders/model_sky.h"
24 static const float k_world_light_cube_size
= 8.0f
;
27 GLuint tex_terrain_noise
;
32 double sky_time
, sky_rate
, sky_target_rate
;
36 struct framebuffer fbreflect
, fbdepth
;
59 u32 text_particle_count
;
62 VG_STATIC
void world_render_init(void);
64 VG_STATIC
void world_link_lighting_ub( world_instance
*world
, GLuint shader
);
65 VG_STATIC
void world_bind_position_texture( world_instance
*world
,
66 GLuint shader
, GLuint location
,
68 VG_STATIC
void world_bind_light_array( world_instance
*world
,
69 GLuint shader
, GLuint location
,
71 VG_STATIC
void world_bind_light_index( world_instance
*world
,
72 GLuint shader
, GLuint location
,
74 VG_STATIC
void render_world_position( world_instance
*world
, camera
*cam
);
75 VG_STATIC
void render_world_depth( world_instance
*world
, camera
*cam
);
76 VG_STATIC
void render_world( world_instance
*world
, camera
*cam
,
78 VG_STATIC
void render_world_cubemaps( world_instance
*world
);
80 #endif /* WORLD_RENDER_H */