Removed unnecessary camera updates
This commit is contained in:
@@ -84,11 +84,6 @@ void camera_struct::get_view_point(vec4& value) {
|
||||
value.w = 0.0f;
|
||||
}
|
||||
|
||||
void camera_struct::update_data() {
|
||||
implOfcamera_data_update_projection();
|
||||
camera_struct__update_view(camera_data);
|
||||
}
|
||||
|
||||
void camera_patch() {
|
||||
INSTALL_HOOK(camera_data_update_projection);
|
||||
INSTALL_HOOK(camera_update);
|
||||
|
||||
@@ -55,8 +55,6 @@ struct camera_struct {
|
||||
|
||||
void get_view_point(vec3& value);
|
||||
void get_view_point(vec4& value);
|
||||
|
||||
static void update_data();
|
||||
};
|
||||
|
||||
extern camera_struct& camera_data;
|
||||
|
||||
@@ -2383,8 +2383,6 @@ namespace mdl {
|
||||
if (!obj_vert_buf || !obj_index_buf)
|
||||
return false;
|
||||
|
||||
camera_struct::update_data();
|
||||
|
||||
mat4 _mat;
|
||||
if (mdl::obj_reflect_enable) {
|
||||
mat4_transpose(&mat, &_mat);
|
||||
|
||||
@@ -1201,7 +1201,6 @@ void image_filter_scale(RenderTexture* dst, texture* src, const vec4& scale) {
|
||||
}
|
||||
|
||||
void draw_pass_set_camera() {
|
||||
camera_struct::update_data();
|
||||
mat4_transpose(&camera_data.view, &rctx->view_mat);
|
||||
mat4_transpose(&camera_data.projection, &rctx->proj_mat);
|
||||
mat4_transpose(&camera_data.view_projection, &rctx->vp_mat);
|
||||
|
||||
Reference in New Issue
Block a user