From 7e51dc8b4ea8e39357263a7bd70746aad2f5b7f3 Mon Sep 17 00:00:00 2001 From: 3gg <3gg@shellblade.net> Date: Thu, 5 Jan 2023 16:35:11 -0800 Subject: Let the scene loader compile shader computations. --- gltfview/src/game.c | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) (limited to 'gltfview/src/game.c') diff --git a/gltfview/src/game.c b/gltfview/src/game.c index f2e5a88..bd474d6 100644 --- a/gltfview/src/game.c +++ b/gltfview/src/game.c @@ -37,6 +37,7 @@ static const char* DAMAGED_HELMET = static const char* CLOUDS1_TEXTURE = "/assets/skybox/clouds1/clouds1_west.bmp"; +// TODO: Move this debug rendering to the renderer. static ShaderProgram* load_shader( RenderBackend* render_backend, const char* view_mode) { ShaderProgram* shader = 0; @@ -147,13 +148,14 @@ static bool load_scene( return false; } - ShaderProgram* shader = load_shader(game->render_backend, view_mode); - if (!shader) { - return false; - } + // TODO: Move the debug rendering to the renderer. + // ShaderProgram* shader = load_shader(game->render_backend, view_mode); + // if (!shader) { + // return false; + // } if (!gfx_load_scene( - game->gfx, sky_node, shader, + game->gfx, sky_node, &(LoadSceneCmd){ .origin = SceneFromFile, .filepath = scene_filepath})) { return false; -- cgit v1.2.3