@@ -37,19 +37,19 @@ namespace skeletal::animation
37
37
static const radians fov = 45_deg;
38
38
const auto aspect = _renderer->device ()->viewport ().aspect_ratio ();
39
39
40
- _position = { 0 .0f , 0 .0f , -500 .0f };
41
- _rotation = 45_deg ;
40
+ _position = { 0 .0f , 0 .0f , -250 .0f };
41
+ _rotation = 0_deg ;
42
42
_rotation_transform = matrix4::identity ();
43
43
44
44
view = create_look_at (_position, vector3::zero (), vector3::up ());
45
45
projection = create_perspective_field_of_view (fov, aspect, 0 .1f , 1000 .0f );
46
46
47
- // _resize_connection = _renderer->window()->connect_resize([&](std::uint32_t, std::uint32_t) {
48
- // static const radians fov = 45_deg;
49
- // const auto aspect = _renderer->device()->viewport().aspect_ratio();
47
+ _resize_connection = _renderer->window ()->connect_resize ([&](std::uint32_t , std::uint32_t ) {
48
+ static const radians fov = 45_deg;
49
+ const auto aspect = _renderer->device ()->viewport ().aspect_ratio ();
50
50
51
- // projection = create_perspective_field_of_view(fov, aspect, 1.0f, 1000.0f);
52
- // });
51
+ projection = create_perspective_field_of_view (fov, aspect, 1 .0f , 1000 .0f );
52
+ });
53
53
}
54
54
55
55
void camera::update (const steptime& time) noexcept
0 commit comments