diff options
| -rw-r--r-- | src/game.h | 1 | ||||
| -rw-r--r-- | src/plugins/viewer.c | 4 |
2 files changed, 2 insertions, 3 deletions
| @@ -7,7 +7,6 @@ typedef struct PluginEngine PluginEngine; | |||
| 7 | typedef struct Plugin Plugin; | 7 | typedef struct Plugin Plugin; |
| 8 | typedef struct Gfx Gfx; | 8 | typedef struct Gfx Gfx; |
| 9 | typedef struct GfxApp GfxApp; | 9 | typedef struct GfxApp GfxApp; |
| 10 | typedef struct Scene Scene; | ||
| 11 | typedef struct SceneCamera SceneCamera; | 10 | typedef struct SceneCamera SceneCamera; |
| 12 | 11 | ||
| 13 | /// Game state. | 12 | /// Game state. |
diff --git a/src/plugins/viewer.c b/src/plugins/viewer.c index 6853065..fec8424 100644 --- a/src/plugins/viewer.c +++ b/src/plugins/viewer.c | |||
| @@ -45,7 +45,7 @@ static const char* GIRL = | |||
| 45 | static const char* BOXES = | 45 | static const char* BOXES = |
| 46 | "/home/jeanne/Nextcloud/assets/models/boxes/boxes.gltf"; | 46 | "/home/jeanne/Nextcloud/assets/models/boxes/boxes.gltf"; |
| 47 | 47 | ||
| 48 | #define DEFAULT_SCENE_FILE GIRL | 48 | #define DEFAULT_SCENE_FILE SPONZA |
| 49 | 49 | ||
| 50 | static const bool RenderBoundingBoxes = false; | 50 | static const bool RenderBoundingBoxes = false; |
| 51 | static const R DefaultCameraSpeed = (R)6.0; | 51 | static const R DefaultCameraSpeed = (R)6.0; |
| @@ -114,7 +114,7 @@ static Model* load_model(Game* game, State* state, const char* scene_filepath) { | |||
| 114 | assert(state); | 114 | assert(state); |
| 115 | assert(state->scene); | 115 | assert(state->scene); |
| 116 | 116 | ||
| 117 | SceneNode* root = gfx_get_scene_root(state->scene); | 117 | SceneNode* root = gfx_get_scene_root_mut(state->scene); |
| 118 | SceneNode* sky_light_node = load_skyquad(game->gfx, root); | 118 | SceneNode* sky_light_node = load_skyquad(game->gfx, root); |
| 119 | if (!sky_light_node) { | 119 | if (!sky_light_node) { |
| 120 | return nullptr; | 120 | return nullptr; |
