dbf-udg
diff src/udg.cc @ 2:c45c7a1f7d9d
foo
author | John Tsiombikas <nuclear@member.fsf.org> |
---|---|
date | Wed, 09 Jan 2013 02:37:05 +0200 |
parents | 1d5dc834d403 |
children | 403ec1be3a1a |
line diff
1.1 --- a/src/udg.cc Tue Jan 08 14:19:06 2013 +0200 1.2 +++ b/src/udg.cc Wed Jan 09 02:37:05 2013 +0200 1.3 @@ -13,7 +13,7 @@ 1.4 #include "sdr.h" 1.5 #include "dither_matrix.h" 1.6 1.7 -#define DITHER_SZ 4 1.8 +#define DITHER_SZ 8 1.9 #define DITHER_LEVELS 16 1.10 1.11 #if DITHER_SZ == 4 1.12 @@ -165,6 +165,12 @@ 1.13 glRotatef(cam_phi, 1, 0, 0); 1.14 glRotatef(cam_theta, 0, 1, 0); 1.15 1.16 + const float blue[] = {0.4, 0.45, 1.0, 1}; 1.17 + const float white[] = {1, 1, 1, 1}; 1.18 + glMaterialfv(GL_FRONT_AND_BACK, GL_AMBIENT_AND_DIFFUSE, blue); 1.19 + glMaterialfv(GL_FRONT_AND_BACK, GL_SPECULAR, white); 1.20 + glMaterialf(GL_FRONT_AND_BACK, GL_SHININESS, 80.0); 1.21 + 1.22 glFrontFace(GL_CW); 1.23 glutSolidTeapot(1.0); 1.24 glFrontFace(GL_CCW);