X-Git-Url: https://harrygodden.com/git/?a=blobdiff_plain;f=world.h;h=ef935968257fd422b9be0f7f592c332fcefbdb55;hb=791f807111a1f740f745c67db642aa7a8bee56e8;hp=3f806cb8714e00dbabf0d8564dede4a7b9acd43b;hpb=e61356f70eddb79f05d7b9e329e91963ec74f817;p=carveJwlIkooP6JGAAIwe30JlM.git diff --git a/world.h b/world.h index 3f806cb..ef93596 100644 --- a/world.h +++ b/world.h @@ -93,6 +93,9 @@ struct world_instance 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]; @@ -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; + 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, @@ -734,7 +739,7 @@ VG_STATIC void world_update( world_instance *world, v3f pos ) 0xff00ff00 ); } - if( k_debug_light_index ) + if( k_debug_light_indices ) { for( int i=0; ilight_count; i++ ) {