Rev Author Line No. Line
1 ovan 1  
2     inline void light_test() noexcept
3     {
6 ovan 4 //        GLfloat lightZeroPosition[] = {5.0f, 0.0f, -15.0f, 1.0f};
5 //        GLfloat lightOnePosition[] = {-10.0f, 0.0f, -10.0f, 0.0f};
6 //        GLfloat lightZeroColor[] = {1.f, 1.0f, 1.f, 1.0f};
7 //        GLfloat lightOneColor[] = {1.f, 1.f, 1.f, 1.0f};
8 //
9 //        glLightfv(GL_LIGHT0, GL_POSITION, lightZeroPosition);
10 //        glLightfv(GL_LIGHT0, GL_DIFFUSE, lightZeroColor);
11 //        glLightfv(GL_LIGHT0, GL_SPECULAR, lightZeroColor);
12 //        glLightf(GL_LIGHT0, GL_LINEAR_ATTENUATION, 0.01f);
13 //        glLightfv(GL_LIGHT1, GL_POSITION, lightOnePosition);
14 //        glLightfv(GL_LIGHT1, GL_DIFFUSE, lightOneColor);
15 //        glLightfv(GL_LIGHT1, GL_SPECULAR, lightOneColor);
16 //        glLightf(GL_LIGHT1, GL_LINEAR_ATTENUATION, 0.01f);
17 //        glEnable(GL_LIGHT0);
18 //        glEnable(GL_LIGHT1);
19 //
20 //        GLfloat white[] = {1.0f, 1.0f, 1.0f, 1.0f};
21 //
22 //        glMaterialfv(GL_FRONT, GL_DIFFUSE, white);
23 //        glMaterialfv(GL_FRONT, GL_SPECULAR, white);
24 //        glMaterialf(GL_FRONT, GL_SHININESS, 80.0f);
1 ovan 25     }