X-Git-Url: http://git.hungrycats.org/cgi-bin/gitweb.cgi?p=xscreensaver;a=blobdiff_plain;f=hacks%2Fglx%2Fmolecule.c;h=0ad814edf1eb2b3408636b704897329c705368b8;hp=02b8362461a5285bf26fd8661f602fb715da9085;hb=cccbddbc4140cf9a06d7d95cc5c0ca36eb5d6e28;hpb=a94197e76a5dea5cb60542840809d6c20d0abbf3 diff --git a/hacks/glx/molecule.c b/hacks/glx/molecule.c index 02b83624..0ad814ed 100644 --- a/hacks/glx/molecule.c +++ b/hacks/glx/molecule.c @@ -1200,8 +1200,14 @@ reshape_molecule (ModeInfo *mi, int width, int height) static void gl_init (ModeInfo *mi) { - static GLfloat pos[4] = {5.0, 5.0, 10.0, 1.0}; + static GLfloat pos[4] = {1.0, 0.4, 0.9, 0.0}; + static GLfloat amb[4] = {0.0, 0.0, 0.0, 1.0}; + static GLfloat dif[4] = {0.8, 0.8, 0.8, 1.0}; + static GLfloat spc[4] = {1.0, 1.0, 1.0, 1.0}; glLightfv(GL_LIGHT0, GL_POSITION, pos); + glLightfv(GL_LIGHT0, GL_AMBIENT, amb); + glLightfv(GL_LIGHT0, GL_DIFFUSE, dif); + glLightfv(GL_LIGHT0, GL_SPECULAR, spc); orig_do_labels = do_labels; orig_do_bonds = do_bonds;