summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--examples/obj_loading/backpack_screenshot.pngbin2545081 -> 2404274 bytes
-rw-r--r--examples/obj_loading/ex_obj_loading.c4
2 files changed, 2 insertions, 2 deletions
diff --git a/examples/obj_loading/backpack_screenshot.png b/examples/obj_loading/backpack_screenshot.png
index 55b15c5..a16b1f2 100644
--- a/examples/obj_loading/backpack_screenshot.png
+++ b/examples/obj_loading/backpack_screenshot.png
Binary files differ
diff --git a/examples/obj_loading/ex_obj_loading.c b/examples/obj_loading/ex_obj_loading.c
index 6f1f12a..ecb2e54 100644
--- a/examples/obj_loading/ex_obj_loading.c
+++ b/examples/obj_loading/ex_obj_loading.c
@@ -28,7 +28,7 @@ int main() {
// 2. upload vertex data to gpu
model_upload_meshes(&core->renderer, backpack);
// 3. create a camera
- vec3 camera_pos = vec3(3., 4., 10.);
+ vec3 camera_pos = vec3(3., 2., 10.);
vec3 camera_front = vec3_normalise(vec3_negate(camera_pos));
camera cam = camera_create(camera_pos, camera_front, VEC3_Y, deg_to_rad(45.0));
// 4. create lights
@@ -61,7 +61,7 @@ int main() {
// Draw the backpack
transform model_tf =
- transform_create(VEC3_ZERO, quat_ident(), 2.0); // make the backpack a bit bigger
+ transform_create(vec3(0.0, -0.4, 0.0), quat_ident(), 1.8); // make the backpack a bit bigger
draw_model(&core->renderer, &cam, backpack, model_tf, &our_scene);
render_frame_end(&core->renderer);