examples: improve initial camera position for examples/sokol/05_instancing_glsl/rt_glsl.v

This commit is contained in:
Delyan Angelov 2024-03-08 12:41:32 +02:00
parent 4cf05083ca
commit 83978a8d86

View file

@ -34,8 +34,8 @@ mut:
init_flag bool init_flag bool
frame_count int frame_count int
mouse_x int = -1 mouse_x int = 903
mouse_y int = -1 mouse_y int = 638
mouse_down bool mouse_down bool
// glsl // glsl
cube_pip_glsl gfx.Pipeline cube_pip_glsl gfx.Pipeline
@ -48,8 +48,8 @@ mut:
// instances // instances
inst_pos [num_inst]m4.Vec4 inst_pos [num_inst]m4.Vec4
// camera // camera
camera_x f32 camera_x f32 = -8
camera_z f32 camera_z f32 = 47
} }
/****************************************************************************** /******************************************************************************
@ -488,6 +488,7 @@ fn my_event_manager(mut ev gg.Event, mut app App) {
else {} 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() { fn main() {