Skip to content

Commit

Permalink
examples: improve initial camera position for examples/sokol/05_insta…
Browse files Browse the repository at this point in the history
…ncing_glsl/rt_glsl.v
  • Loading branch information
spytheman committed Mar 8, 2024
1 parent 4cf0508 commit 83978a8
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions examples/sokol/05_instancing_glsl/rt_glsl.v
Expand Up @@ -34,8 +34,8 @@ mut:
init_flag bool
frame_count int

mouse_x int = -1
mouse_y int = -1
mouse_x int = 903
mouse_y int = 638
mouse_down bool
// glsl
cube_pip_glsl gfx.Pipeline
Expand All @@ -48,8 +48,8 @@ mut:
// instances
inst_pos [num_inst]m4.Vec4
// camera
camera_x f32
camera_z f32
camera_x f32 = -8
camera_z f32 = 47
}

/******************************************************************************
Expand Down Expand Up @@ -488,6 +488,7 @@ fn my_event_manager(mut ev gg.Event, mut app App) {
else {}
}
}
eprintln('>> app.camera_x: ${app.camera_x} , app.camera_z: ${app.camera_z}, app.mouse_x: ${app.mouse_x}, app.mouse_y: ${app.mouse_y}')
}

fn main() {
Expand Down

0 comments on commit 83978a8

Please sign in to comment.