summary refs log tree commit diff
path: root/src/main.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/main.cpp')
-rw-r--r--src/main.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/main.cpp b/src/main.cpp
index 5d5af2f..40034e2 100644
--- a/src/main.cpp
+++ b/src/main.cpp
@@ -66,10 +66,15 @@ void run() {
     auto view_uniform = program.uniform("view_matrix");
     auto projection_uniform = program.uniform("projection_matrix");
 
+    auto sun_direction_uniform = program.uniform("sun_direction");
+
     program.bind();
     auto projection = Math::MVP::projection(ASPECT, FOV, 0.1f, 1000.0f);
     projection_uniform.set(projection);
 
+    Vector<3> sun_direction{1.0f, -1.0f, 0.0f};
+    sun_direction_uniform.set(sun_direction);
+
     glEnable(GL_DEPTH_TEST);
     glDepthFunc(GL_LEQUAL);