summaryrefslogtreecommitdiff
path: root/examples/cube/ex_cube.c
diff options
context:
space:
mode:
authorOmniscient <omniscient.oce@gmail.com>2024-06-15 16:38:05 +1000
committerOmniscient <omniscient.oce@gmail.com>2024-06-15 16:38:05 +1000
commitc5808488875484aca814bfc8e526f37f3f447166 (patch)
treee560bc86302fad0c8520140511e1994c2b4800d7 /examples/cube/ex_cube.c
parent59f67f04d7238453da766218a37b3c78607fb122 (diff)
shinchoku
Diffstat (limited to 'examples/cube/ex_cube.c')
-rw-r--r--examples/cube/ex_cube.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/examples/cube/ex_cube.c b/examples/cube/ex_cube.c
index 5f45b7f..26e6b71 100644
--- a/examples/cube/ex_cube.c
+++ b/examples/cube/ex_cube.c
@@ -16,6 +16,15 @@
extern core g_core;
+// Scene / light setup
+const vec3 pointlight_positions[4] = {
+ { -10.0, 10.0, 10.0},
+ { 10.0, 10.0, 10.0},
+ { -10.0, -10.0, 10.0},
+ { 10.0, -10.0, 10.0},
+};
+point_light point_lights[4];
+
// Define the shader data
typedef struct mvp_uniforms {
mat4 model;