projects
/
carveJwlIkooP6JGAAIwe30JlM.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
checkin
[carveJwlIkooP6JGAAIwe30JlM.git]
/
world.h
diff --git
a/world.h
b/world.h
index 3f806cb8714e00dbabf0d8564dede4a7b9acd43b..ef935968257fd422b9be0f7f592c332fcefbdb55 100644
(file)
--- a/
world.h
+++ b/
world.h
@@
-93,6
+93,9
@@
struct world_instance
int g_light_preview;
int g_shadow_samples;
int g_light_preview;
int g_shadow_samples;
+ int g_debug_indices;
+ int g_debug_complexity;
+
#if 0
v4f g_point_light_positions[32];
v4f g_point_light_colours[32];
#if 0
v4f g_point_light_positions[32];
v4f g_point_light_colours[32];
@@
-625,6
+628,8
@@
VG_STATIC void world_update( world_instance *world, v3f pos )
g_time += vg.time_delta * (1.0/(k_day_length*60.0));
world->ub_lighting.g_time = g_time;
g_time += vg.time_delta * (1.0/(k_day_length*60.0));
world->ub_lighting.g_time = g_time;
+ world->ub_lighting.g_debug_indices = k_debug_light_indices;
+ world->ub_lighting.g_debug_complexity = k_debug_light_complexity;
glBindBuffer( GL_UNIFORM_BUFFER, world->ubo_lighting );
glBufferSubData( GL_UNIFORM_BUFFER, 0,
glBindBuffer( GL_UNIFORM_BUFFER, world->ubo_lighting );
glBufferSubData( GL_UNIFORM_BUFFER, 0,
@@
-734,7
+739,7
@@
VG_STATIC void world_update( world_instance *world, v3f pos )
0xff00ff00 );
}
0xff00ff00 );
}
- if( k_debug_light_ind
ex
)
+ if( k_debug_light_ind
ices
)
{
for( int i=0; i<world->light_count; i++ )
{
{
for( int i=0; i<world->light_count; i++ )
{