[openGL] Light & Material
코드) #include #include #include using namespace std; int w = 500, h = 500; GLfloat light_ambient[] = { 0.2, 0.2, 0.2, 1.0 }; GLfloat light_diffuse[] = { 1.0, 0.5, 0.5, 1.0 }; GLfloat light_specular[] = { 0, 1, 0, 0 }; GLfloat position[] = { 0.0, 3.0, 2.0, 0.0 }; GLfloat mat0[] = { 0.0, 0.0, 0.0, 1.0 }; GLfloat mat_ambient[] = { 0.7, 0.7, 0.7, 1.0 }; GLfloat mat_ambient_color[] = { 0.8, 0.8, 0.2, ..