diff options
Diffstat (limited to 'src/plugins/viewer.c')
| -rw-r--r-- | src/plugins/viewer.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/plugins/viewer.c b/src/plugins/viewer.c index 2702980..16c6634 100644 --- a/src/plugins/viewer.c +++ b/src/plugins/viewer.c | |||
| @@ -46,9 +46,9 @@ static const char* GIRL = | |||
| 46 | static const char* BOXES = | 46 | static const char* BOXES = |
| 47 | "/home/jeanne/Nextcloud/assets/models/boxes/boxes.gltf"; | 47 | "/home/jeanne/Nextcloud/assets/models/boxes/boxes.gltf"; |
| 48 | 48 | ||
| 49 | #define DEFAULT_SCENE_FILE GIRL | 49 | #define DEFAULT_SCENE_FILE SPONZA |
| 50 | 50 | ||
| 51 | static const bool RenderBoundingBoxes = true; | 51 | static const bool RenderBoundingBoxes = false; |
| 52 | static const R DefaultCameraSpeed = (R)6.0; | 52 | static const R DefaultCameraSpeed = (R)6.0; |
| 53 | static const R DefaultMouseSensitivity = (R)(10 * TO_RAD); | 53 | static const R DefaultMouseSensitivity = (R)(10 * TO_RAD); |
| 54 | static const vec3 DefaultCameraPosition = (vec3){0, 2, 5}; | 54 | static const vec3 DefaultCameraPosition = (vec3){0, 2, 5}; |
| @@ -276,8 +276,8 @@ void update(Game* game, State* state, double t, double dt) { | |||
| 276 | 276 | ||
| 277 | /// Render the bounding boxes of all scene objects. | 277 | /// Render the bounding boxes of all scene objects. |
| 278 | static void render_bounding_boxes_rec( | 278 | static void render_bounding_boxes_rec( |
| 279 | LLR* llr, ImmRenderer* imm, const Anima* anima, | 279 | LLR* llr, Imm* imm, const Anima* anima, const mat4* parent_model_matrix, |
| 280 | const mat4* parent_model_matrix, const SceneNode* node) { | 280 | const SceneNode* node) { |
| 281 | assert(llr); | 281 | assert(llr); |
| 282 | assert(imm); | 282 | assert(imm); |
| 283 | assert(node); | 283 | assert(node); |
| @@ -331,9 +331,9 @@ static void render_bounding_boxes(const Game* game, const State* state) { | |||
| 331 | assert(game); | 331 | assert(game); |
| 332 | assert(state); | 332 | assert(state); |
| 333 | 333 | ||
| 334 | GfxCore* gfxcore = gfx_get_core(game->gfx); | 334 | GfxCore* gfxcore = gfx_get_core(game->gfx); |
| 335 | LLR* llr = gfx_get_llr(game->gfx); | 335 | LLR* llr = gfx_get_llr(game->gfx); |
| 336 | ImmRenderer* imm = gfx_get_imm_renderer(game->gfx); | 336 | Imm* imm = gfx_get_imm(game->gfx); |
| 337 | assert(gfxcore); | 337 | assert(gfxcore); |
| 338 | assert(llr); | 338 | assert(llr); |
| 339 | assert(imm); | 339 | assert(imm); |
