summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authoromnisci3nce <omniscient.oce@gmail.com>2024-07-18 23:10:11 +1000
committeromnisci3nce <omniscient.oce@gmail.com>2024-07-18 23:10:11 +1000
commit01d598220b403f4ac4da3b7aa1f0ce398be3198f (patch)
tree1408b120506f29d3a2d6b3b29a0c91fc1b1371eb /examples
parent544aac70015b6b075b172c42dd2d90dee3d029c0 (diff)
skybox works
Diffstat (limited to 'examples')
-rw-r--r--examples/game_demo/game_demo.c8
1 files changed, 4 insertions, 4 deletions
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);