OpenGL: How to make surface shiny
The gluCylinder I drew have a shiny surface that responds to my glMaterialfv() command, but the rectangle i drew myself doesn't shine at all.
How do you draw a surface and make it shiny?
I enable light0, give it some ambient and specular component, and give my surface and cylinder some ambient and specular material properties. the shiny feeling comes up in the cylinder, i did the same for the GL_QUADS i draw but it renders like a dead rectangle with no shiness whatsoever.
Can someone describe to me all the steps to enable the specular property on a surface?
Solved: glNormal determines the light reflection
I solved it with your help. I put the code:
Originally Posted by zacs7
before each vertex and the front side shines exactly the way i wanted. Appriciate it.