From 01d598220b403f4ac4da3b7aa1f0ce398be3198f Mon Sep 17 00:00:00 2001 From: omnisci3nce Date: Thu, 18 Jul 2024 23:10:11 +1000 Subject: skybox works --- examples/game_demo/game_demo.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'examples/game_demo/game_demo.c') diff --git a/examples/game_demo/game_demo.c b/examples/game_demo/game_demo.c index 720614f..1f88503 100644 --- a/examples/game_demo/game_demo.c +++ b/examples/game_demo/game_demo.c @@ -24,13 +24,13 @@ int main() { // TODO: Load humanoid model + weapon // TODO: Animate it with WASD keys - // TODO: Skybox + // TODO: Skybox (ALMOST) // TODO: Add a ground terrain // TODO: Move camera with model // --- Render Scene - Vec3 camera_pos = vec3(0.0, 4.0, 8.0); - Camera cam = Camera_Create(camera_pos, vec3_negate(camera_pos), VEC3_Y, 45.0); + Vec3 camera_pos = vec3(0.0, 4.0, -8.0); + Camera cam = Camera_Create(camera_pos, vec3_normalise(vec3_negate(camera_pos)), VEC3_Y, 45.0); SetCamera(cam); // update the camera in RenderScene DirectionalLight sun = { @@ -90,7 +90,7 @@ int main() { // BEGIN Draw calls // draw the player model with shadows - // Render_RenderEntities(entities, entity_count); + Render_RenderEntities(entities, entity_count); // Render_DrawTerrain(); Skybox_Draw(&skybox, cam); -- cgit v1.2.3-70-g09d2