Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- float amb_comp[] = { 0.1 , 0.1 ,0.1, 1.0 };
- float dif_comp[] = { 1.0 , 1.0, 1.0, 1.0 };
- float spec_comp[] = { 1.0, 1.0 ,1.0 ,1.0 };
- float light_pos[] = { 1.0, 1.0, 0.0, 0.0};
- glLightfv(GL_LIGHT0, GL_AMBIENT, amb_comp);
- glLightfv(GL_LIGHT0, GL_SPECULAR, spec_comp);
- glLightfv(GL_LIGHT0, GL_DIFFUSE, dif_comp);
- glLightfv(GL_LIGHT0, GL_POSITION, light_pos);
- glEnable(GL_LIGHT0);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement