summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/camera.c6
-rw-r--r--src/scene.c10
2 files changed, 7 insertions, 9 deletions
diff --git a/src/camera.c b/src/camera.c
index 79f9c19..eb8fc7d 100644
--- a/src/camera.c
+++ b/src/camera.c
@@ -6,10 +6,8 @@ mat4 camera_view_proj(camera camera, f32 lens_height, f32 lens_width, mat4* out_
vec3 camera_direction = vec3_add(camera.position, camera.forwards);
mat4 view_matrix = mat4_look_at(camera.position, camera_direction, camera.up);
- if (out_view)
- *out_view = view_matrix;
- if (out_proj)
- *out_proj = projection_matrix;
+ if (out_view) *out_view = view_matrix;
+ if (out_proj) *out_proj = projection_matrix;
return mat4_mult(view_matrix, projection_matrix);
} \ No newline at end of file
diff --git a/src/scene.c b/src/scene.c
index fa4d9b5..26e19dc 100644
--- a/src/scene.c
+++ b/src/scene.c
@@ -1,17 +1,17 @@
/**
* @file scene.c
* @author your name (you@domain.com)
- * @brief
+ * @brief
* @version 0.1
* @date 2024-10-18
- *
+ *
* @copyright Copyright (c) 2024
- *
+ *
*/
#include <celeritas.h>
-// Retained mode scene tree that handles performant transform propagation, and allows systems, or other languages via bindings, to
-// manipulate rendering/scene data without *owning* said data.
+// Retained mode scene tree that handles performant transform propagation, and allows systems, or other languages via
+// bindings, to manipulate rendering/scene data without *owning* said data.
typedef struct scene_tree_node {
const char* label;