diff options
author | Omni <omniscient.oce@gmail.com> | 2024-08-17 17:17:27 +1000 |
---|---|---|
committer | Omni <omniscient.oce@gmail.com> | 2024-08-17 17:17:27 +1000 |
commit | 10a97636c5a0234ca776097bae4be25dcf3c050e (patch) | |
tree | c65d5827ef3e228c35881df21fadc4d1e7d60a65 /src/render/pbr.c | |
parent | eadfaaa86c29c36dd5ef5d0b6b6fa27af0cdb8b3 (diff) |
chore: format
Diffstat (limited to 'src/render/pbr.c')
-rw-r--r-- | src/render/pbr.c | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/src/render/pbr.c b/src/render/pbr.c index 6ea5746..4bad528 100644 --- a/src/render/pbr.c +++ b/src/render/pbr.c @@ -13,7 +13,6 @@ #include "render_types.h" #include "shader_layouts.h" - void PBR_Init(PBR_Storage* storage) { INFO("PBR shaders init"); storage->pbr_pass = PBR_RPassCreate(); @@ -153,12 +152,12 @@ void PBR_Execute(PBR_Storage* storage, Camera camera, TextureHandle shadowmap_te Armature* skeleton = renderable.armature; // Skip the first one as we assume its root for this test for (int j_i = 1; j_i < skeleton->joints->len; j_i++) { - Joint* j = &skeleton->joints->data[j_i]; - j->local_transform = transform_to_mat(&j->transform_components); - Mat4 m = mat4_mult(j->local_transform, j->inverse_bind_matrix); - Joint* p = &skeleton->joints->data[j->parent]; - j->local_transform = mat4_mult(j->local_transform, p->local_transform); - printf("Quat %f \n", j->transform_components.rotation.z); + Joint* j = &skeleton->joints->data[j_i]; + j->local_transform = transform_to_mat(&j->transform_components); + Mat4 m = mat4_mult(j->local_transform, j->inverse_bind_matrix); + Joint* p = &skeleton->joints->data[j->parent]; + j->local_transform = mat4_mult(j->local_transform, p->local_transform); + printf("Quat %f \n", j->transform_components.rotation.z); } // 2. bind and upload |