Skip to content

Commit f7789e7

Browse files
committed
why, man
1 parent 6af4747 commit f7789e7

5 files changed

Lines changed: 10 additions & 5 deletions

File tree

src/hyperlib/math.hpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
#pragma once
22

33
#include <cstdint>
4+
#include <limits>
45
#include <cmath>
56

67
#if defined(USE_SIMD_VECTORIZATIONS)

src/hyperlib/renderer/camera.cpp

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,8 @@ namespace hyper
8484

8585
void camera::set_camera_matrix(const matrix4x4& world_to_camera, float elapsed)
8686
{
87+
// #TODO why is this broken for canyon-nis to car camera transition???
88+
8789
if (!camera::stop_updating)
8890
{
8991
::memcpy(&this->previous_key, &this->current_key, sizeof(camera::params));
@@ -103,9 +105,11 @@ namespace hyper
103105

104106
matrix4x4 rotation;
105107

106-
math::invert_rotation(this->current_key.view_matrix, rotation);
108+
math::transpose_matrix(this->current_key.view_matrix, rotation);
107109

108-
rotation.m44 = 1.0f;
110+
rotation.m14 = 0.0f;
111+
rotation.m24 = 0.0f;
112+
rotation.m34 = 0.0f;
109113

110114
this->current_key.position = this->current_key.view_matrix.row(3u);
111115

src/hyperlib/renderer/culling.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -386,7 +386,7 @@ namespace hyper
386386

387387
if ((exclude & instance_flags::include_rear_view) != 0)
388388
{
389-
if ((include & instance_flags::include_rear_view) != 0 && pixel_size >= 32)
389+
if (pixel_size >= 32)
390390
{
391391
return this->commit_scenery(instance, info, cull_info, model_lod::c, state);
392392
}

src/hyperlib/version.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
#define __VERSION__ 48
1+
#define __VERSION__ 51

src/hyperlinked/patches.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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();

0 commit comments

Comments
 (0)