]> git.lizzy.rs Git - shadowclad.git/commitdiff
Change main light to directional
authoroutfrost <kotlet.bahn@gmail.com>
Wed, 30 Jan 2019 19:24:13 +0000 (20:24 +0100)
committeroutfrost <kotlet.bahn@gmail.com>
Wed, 30 Jan 2019 19:24:13 +0000 (20:24 +0100)
render.c

index a8bebf2d4c8c52ad3123a200c13a3491e53a9679..ce77a0f05079caaf8822c467a48d64d45756b848 100644 (file)
--- a/render.c
+++ b/render.c
@@ -18,8 +18,8 @@ void initRender() {
        
        GLfloat light0_ambient[] = {0.1f, 0.1f, 0.1f, 1.0f};
        GLfloat light0_diffuse[] = {1.0f, 1.0f, 1.0f, 1.0f};
-       GLfloat light0_specular[] = {1.0f, 1.0f, 1.0f, 1.0f};
-       GLfloat light0_position[] = {5.0f, 2.0f, 5.0f, 1.0f};
+       GLfloat light0_specular[] = {0.96f, 0.98f, 1.0f, 1.0f};
+       GLfloat light0_position[] = {5.0f, 10.0f, 5.0f, 0.0f}; // (w == 0.0f) == directional
        
        glLightfv(GL_LIGHT0, GL_AMBIENT, light0_ambient);
        glLightfv(GL_LIGHT0, GL_DIFFUSE, light0_diffuse);