Skip to content

Commit 1781232

Browse files
committed
Minor changes
1 parent bfab65f commit 1781232

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

source/samples/skeletal-animation/camera.cpp

+7-7
Original file line numberDiff line numberDiff line change
@@ -37,19 +37,19 @@ namespace skeletal::animation
3737
static const radians fov = 45_deg;
3838
const auto aspect = _renderer->device()->viewport().aspect_ratio();
3939

40-
_position = { 0.0f, 0.0f, -500.0f };
41-
_rotation = 45_deg;
40+
_position = { 0.0f, 0.0f, -250.0f };
41+
_rotation = 0_deg;
4242
_rotation_transform = matrix4::identity();
4343

4444
view = create_look_at(_position, vector3::zero(), vector3::up());
4545
projection = create_perspective_field_of_view(fov, aspect, 0.1f, 1000.0f);
4646

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();
5050

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+
});
5353
}
5454

5555
void camera::update(const steptime& time) noexcept

source/samples/skeletal-animation/earthshaker.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ namespace skeletal::animation
4040
{
4141
static radians rotation = 45_deg;
4242

43-
_world = create_translation({ 0.0f, 0.0f, 0.0f })
43+
_world = create_translation({ -100.0f, 100.0f, -75.0f })
4444
* create_rotation_x({ scener::math::pi_over_2<> })
4545
* create_rotation_y(rotation);
4646

0 commit comments

Comments
 (0)