view3d
changeset 7:75e4377f3cdc
forgot to set the light specular color
author | John Tsiombikas <nuclear@mutantstargoat.com> |
---|---|
date | Sat, 21 Jan 2012 18:20:14 +0200 |
parents | cfd22a190353 |
children | 5562a637e5aa |
files | src/scene.c |
diffstat | 1 files changed, 1 insertions(+), 0 deletions(-) [+] |
line diff
1.1 --- a/src/scene.c Fri Jan 20 04:03:04 2012 +0200 1.2 +++ b/src/scene.c Sat Jan 21 18:20:14 2012 +0200 1.3 @@ -288,6 +288,7 @@ 1.4 return; 1.5 glLightfv(GL_LIGHT0, GL_POSITION, lt->pos); 1.6 glLightfv(GL_LIGHT0, GL_DIFFUSE, lt->color); 1.7 + glLightfv(GL_LIGHT0, GL_SPECULAR, lt->color); 1.8 glLightf(GL_LIGHT0, GL_CONSTANT_ATTENUATION, lt->att[0]); 1.9 glLightf(GL_LIGHT0, GL_LINEAR_ATTENUATION, lt->att[1]); 1.10 glLightf(GL_LIGHT0, GL_QUADRATIC_ATTENUATION, lt->att[2]);