File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -101,6 +101,8 @@ namespace hyper
101101 this ->current_key .view_matrix = trolli::instance.camera_matrix ;
102102
103103 this ->current_key .view_matrix .row (3u ).as_vector3 () *= 0 .01f ;
104+
105+ this ->current_key .view_matrix .m44 = 1 .0f ;
104106 }
105107
106108 matrix4x4 rotation;
@@ -138,7 +140,7 @@ namespace hyper
138140
139141 this ->velocity_key .direction = vector4::scale (vector4::subtract (this ->current_key .direction , this ->previous_key .direction ), inverse_lapsed);
140142
141- this ->velocity_key .target = vector4::scale (vector4::subtract (this ->current_key .target , this ->previous_key .direction ), inverse_lapsed);
143+ this ->velocity_key .target = vector4::scale (vector4::subtract (this ->current_key .target , this ->previous_key .target ), inverse_lapsed);
142144
143145 this ->velocity_key .noise_frequency_1 = (this ->current_key .noise_frequency_1 - this ->previous_key .noise_frequency_1 ) * inverse_lapsed;
144146
Original file line number Diff line number Diff line change @@ -34,7 +34,7 @@ namespace hyper
3434 scenery_patches::init ();
3535 world_anim_patches::init ();
3636
37- // camera_patches::init();
37+ camera_patches::init ();
3838 culling_patches::init ();
3939 directx_patches::init ();
4040 drawing_patches::init ();
You can’t perform that action at this time.
0 commit comments