shithub: tinygl

Download patch

ref: 925d215308b4d9f1d0e9e6d46ce672a01f0a9d57
parent: 3786df909030d292fc7d0079748ac8ec66c29999
author: David <gek@katherine>
date: Fri Feb 12 12:32:23 EST 2021

Update

--- a/src/SDL_Examples/gears.c
+++ b/src/SDL_Examples/gears.c
@@ -185,12 +185,12 @@
     static GLfloat red[4] = {1.0, 0.0, 0.0, 0.0 };
     static GLfloat green[4] = {0.0, 1.0, 0.0, 0.0 };
     static GLfloat blue[4] = {0.0, 0.0, 1.0, 0.0 };
-    static GLfloat white[4] = {10.0, 10.0, 10.0, 0.0 };
+    static GLfloat white[4] = {1.0, 1.0, 1.0, 0.0 };
 
     glLightfv( GL_LIGHT0, GL_POSITION, pos );
     glLightfv( GL_LIGHT0, GL_DIFFUSE, white);
     //glLightfv( GL_LIGHT0, GL_AMBIENT, white);
-    glLightfv( GL_LIGHT0, GL_SPECULAR, white);
+    //glLightfv( GL_LIGHT0, GL_SPECULAR, white);
     glEnable( GL_CULL_FACE );
     glEnable( GL_LIGHTING );
     //glDisable( GL_LIGHTING );