commit 4d87603346f676c033740386718a713143a97726 parent 9e114fcc989e12aa8d0cfd31a518913251e91fa5 Author: Michael Savage <mikejsavage@gmail.com> Date: Sun Dec 11 14:24:27 +0200 Oops Diffstat:
hm.cc | | | 12 | ++---------- |
diff --git a/hm.cc b/hm.cc @@ -76,6 +76,8 @@ static WORK_QUEUE_CALLBACK( testwq ) { printf( "work %u called with arena %p\n", i, arena->memory ); } +static UB ub_sphere; + extern "C" GAME_INIT( game_init ) { workqueue_init( &game->background_tasks, &mem->persistent_arena, 2 ); u32 nums[ 10 ]; @@ -132,7 +134,6 @@ extern "C" GAME_INIT( game_init ) { ); skybox_init( &game->skybox ); - } static m4 camera_to_view( v3 position, v3 angles ) { @@ -172,15 +173,6 @@ extern "C" GAME_FRAME( game_frame ) { skybox_render( &game->skybox, game->angles, game->test_sun ); terrain_render( &game->tm, V, P, game->test_sun, current_time ); - // struct { m4 V; m4 P; } uniforms = { V, P }; - // renderer_ub_data( tree_uniforms, &uniforms, sizeof( uniforms ) ); - // - // RenderState trees_render_state = { }; - // trees_render_state.shader = tree_shader; - // trees_render_state.ubs[ UB_VS_HOT ] = tree_uniforms; - // trees_render_state.cull_face = CULLFACE_DISABLED; - // renderer_draw_mesh( tree_mesh, trees_render_state ); - RenderState immediate_render_state = { }; immediate_render_state.shader = game->test_shader; immediate_render_state.depth_func = DEPTHFUNC_DISABLED;