<< Prev page
Rendering
Polygon Shading
Implementation
OpenGL
Material properties
{r g b a}
Glfloat mat_d[] = {0.1, 0.2, 0.8, 1.0}
glMaterialfv
(GL_FRONT, GL_DIFFUSE, mat_d)
Normal vector
glNormal3f
(nx, ny, nz)
glVertex3f
(nx, ny, nz)