ilun82
11-08-2002, 12:08 AM
// set to GOLD color....
float mamb[]={0.24725f,0.1995f,0.0745f,1.0f}; //Ambient Reflection
float mdif[]={0.75164f,0.60648f,0.22648f,1.0f}; //Diffuse Reflection
float mspe[]={0.628281f,0.555802f,0.366065f,1.0f}; //Specular Reflection
glMaterialfv(GL_FRONT,GL_AMBIENT,mamb); //Set material properties
glMaterialfv(GL_FRONT,GL_DIFFUSE,mdif);
glMaterialfv(GL_FRONT,GL_SPECULAR,mspe);
how can i obtain the correct floating points as above in order to get my desired color?
how can i know that they stands for gold?
float mamb[]={0.24725f,0.1995f,0.0745f,1.0f}; //Ambient Reflection
float mdif[]={0.75164f,0.60648f,0.22648f,1.0f}; //Diffuse Reflection
float mspe[]={0.628281f,0.555802f,0.366065f,1.0f}; //Specular Reflection
glMaterialfv(GL_FRONT,GL_AMBIENT,mamb); //Set material properties
glMaterialfv(GL_FRONT,GL_DIFFUSE,mdif);
glMaterialfv(GL_FRONT,GL_SPECULAR,mspe);
how can i obtain the correct floating points as above in order to get my desired color?
how can i know that they stands for gold?