summaryrefslogtreecommitdiff
path: root/progs/demos/gloss.c
diff options
context:
space:
mode:
authorBrian Paul <brian.paul@tungstengraphics.com>1999-10-23 08:12:23 +0000
committerBrian Paul <brian.paul@tungstengraphics.com>1999-10-23 08:12:23 +0000
commit20cdbc068e44ef268606b089305e8f7e5f67514e (patch)
tree400be8b0dc3b2cf0fdbc13e083d44be769510646 /progs/demos/gloss.c
parent83435611c892d4bdc90a193f9cd90fd74334a0af (diff)
more comments, removed unneeded glDepthFunc call
Diffstat (limited to 'progs/demos/gloss.c')
-rw-r--r--progs/demos/gloss.c10
1 files changed, 7 insertions, 3 deletions
diff --git a/progs/demos/gloss.c b/progs/demos/gloss.c
index 5de3647d62..54d8ad5363 100644
--- a/progs/demos/gloss.c
+++ b/progs/demos/gloss.c
@@ -1,9 +1,14 @@
-/* $Id: gloss.c,v 1.1 1999/10/22 20:34:57 brianp Exp $ */
+/* $Id: gloss.c,v 1.2 1999/10/23 08:12:23 brianp Exp $ */
/*
- * Specular reflection demo. The specular hightlight is modulated by
+ * Specular reflection demo. The specular highlight is modulated by
* a sphere-mapped texture. The result is a high-gloss surface.
* NOTE: you really need hardware acceleration for this.
+ * Also note, this technique can't be implemented with multi-texture
+ * and separate specular color interpolation because there's no way
+ * to indicate that the second texture unit (the reflection map)
+ * should modulate the specular color and not the base color.
+ * A future multi-texture extension could fix that.
*
* Command line options:
* -info print GL implementation information
@@ -104,7 +109,6 @@ static void Display( void )
glDisable(GL_TEXTURE_GEN_S);
glDisable(GL_TEXTURE_GEN_T);
glDisable(GL_BLEND);
- glDepthFunc(GL_LESS);
glPopMatrix();