I am trying to make a chrome cube in GLUT / OpenGL and I don’t know exactly how to do it.
I searched the “Material Table” in the textbook, which shows that “Chrome” is: Environment: (0.25, 0.25, 0.25), Diffuse: (0.4, 0.4, 0, 4) and Mirror: (0.774597.0.774597.0.774597).
My question is: how to create a simple cube and apply this material / texture to it in Glut / OpenGL?
Am I using "glutSolidCube ()"? If so, how do I apply the chrome texture to it?
Can GLUT / OpenGL people point me in the right direction?
source
share