diff options
author | Omniscient <omniscient.oce@gmail.com> | 2024-06-15 16:38:05 +1000 |
---|---|---|
committer | Omniscient <omniscient.oce@gmail.com> | 2024-06-15 16:38:05 +1000 |
commit | c5808488875484aca814bfc8e526f37f3f447166 (patch) | |
tree | e560bc86302fad0c8520140511e1994c2b4800d7 /examples/cube/ex_cube.c | |
parent | 59f67f04d7238453da766218a37b3c78607fb122 (diff) |
shinchoku
Diffstat (limited to 'examples/cube/ex_cube.c')
-rw-r--r-- | examples/cube/ex_cube.c | 9 |
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; |