Fixed some GL inconsistencies and Lit Proj

...
This commit is contained in:
korenkonder
2025-04-13 14:19:05 +03:00
parent 6c5bb08c66
commit 0cf71e20b5
4 changed files with 16 additions and 6 deletions
+3
View File
@@ -199,6 +199,9 @@ bool light_proj::set_mat(bool set_mat) {
vec3 up = { 0.0f, 1.0f, 0.0f };
mat4_look_at(&position, &interest, &up, &rctx->view_mat);
mat4_mul(&rctx->view_mat, &rctx->proj_mat, &rctx->vp_mat);
rctx->set_scene_projection_view(rctx->view_mat, rctx->proj_mat, position);
}
return true;