terrain

Real-time terrain generation using marching cubes
git clone git://git.christianermann.dev/terrain
Log | Files | Refs | README | LICENSE

commit d22b995239ef328984cb69a9ec0c8cec915bda32
parent 9d787c0500cc35758e557c1ef8d429ee2469092a
Author: Christian Ermann <christianermann@gmail.com>
Date:   Mon, 30 May 2022 20:47:38 -0700

Actually update view frustum.

Diffstat:
Msrc/camera.c | 1+
Msrc/main.c | 1+
2 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/src/camera.c b/src/camera.c @@ -9,6 +9,7 @@ Camera *Camera_make(Transform *t) camera->transform = t; Camera_defaultSettings(camera); Camera_updateMatrix(camera); + Camera_updateFrustum(camera); return camera; } diff --git a/src/main.c b/src/main.c @@ -107,6 +107,7 @@ int main(int argc, char** argv) Player_move(&player, &input); Camera_updateMatrix(camera); + Camera_updateFrustum(camera); Shader_setInt(shader, "time", loop_count); Shader_setMat4(shader, "camera", camera->matrix);