summaryrefslogtreecommitdiffstats
path: root/progs/fp/fp-tri.c
diff options
context:
space:
mode:
authorKeith Whitwell <[email protected]>2009-11-19 16:53:02 -0800
committerKeith Whitwell <[email protected]>2009-11-19 16:53:02 -0800
commit7e5cd3eb14c4924e3aa6962bc244cd9fad656e43 (patch)
tree907db0f7f42114779ffd6f09f780c1eec7ed7ebb /progs/fp/fp-tri.c
parent8db59a1fa329b28ba375d54d6d6d5df06f411a6e (diff)
progs/fp: add simple imm, param tests
Diffstat (limited to 'progs/fp/fp-tri.c')
-rw-r--r--progs/fp/fp-tri.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/progs/fp/fp-tri.c b/progs/fp/fp-tri.c
index 52a8fcfc22a..a39818726bd 100644
--- a/progs/fp/fp-tri.c
+++ b/progs/fp/fp-tri.c
@@ -176,6 +176,17 @@ static void Init( void )
}
+ {
+ const float Ambient[4] = { 0.0, 1.0, 0.0, 0.0 };
+ const float Diffuse[4] = { 1.0, 0.0, 0.0, 0.0 };
+ const float Specular[4] = { 0.0, 0.0, 1.0, 0.0 };
+ const float Emission[4] = { 0.0, 0.0, 0.0, 1.0 };
+ glMaterialfv(GL_FRONT_AND_BACK, GL_AMBIENT, Ambient);
+ glMaterialfv(GL_FRONT_AND_BACK, GL_DIFFUSE, Diffuse);
+ glMaterialfv(GL_FRONT_AND_BACK, GL_SPECULAR, Specular);
+ glMaterialfv(GL_FRONT_AND_BACK, GL_EMISSION, Emission);
+ }
+
glClearColor(.1, .3, .5, 0);
}