Reset material values to default
Is there a way to reset the material values (glMaterialfv()) back to default? If not, does anyone know the default values for each GL_AMBIENT, GL_DIFFUSE, GL_EMISSION, GL_SHININESS and GL_SPECULAR so that I can do it manually?
Thanks.
From the Blue Book:
/edit: Cleaned up formatting.
HTH
GL_AMBIENT The default ambient reflectance for both front- and back-facing materials is (0.2, 0.2, 0.2, 1.0).GL_DIFFUSE The default diffuse reflectance for both front- and back-facing materials is (0.8, 0.8, 0.8, 1.0).GL_SPECULAR The default specular reflectance for both front- and back-facing materials is (0.0, 0.0, 0.0, 1.0).GL_EMISSION The default emission intensity for both front- and back-facing materials is (0.0, 0.0, 0.0, 1.0).GL_SHININESS The default specular exponent for both front- and back-facing materials is 0.
/edit: Cleaned up formatting.
HTH
--
Cheers,
Darren Clark
Cheers,
Darren Clark
Thanks.
I would have looked in the Blue Book had I not taken it back to the library a few hours before asking the question. I should probably buy it really.
I would have looked in the Blue Book had I not taken it back to the library a few hours before asking the question. I should probably buy it really.
I have a html version of it and The Red Book, would you like me to e-mail you them (about 8Mb rar'd)?
--
Cheers,
Darren Clark
Cheers,
Darren Clark
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement