forked from pyrite-dev/milsko
fix
git-svn-id: http://svn2.nishi.boats/svn/milsko/trunk@162 b9cfdab3-6d41-4d17-bbe4-086880011989
This commit is contained in:
parent
820e0a7182
commit
c2246783f8
1 changed files with 4 additions and 3 deletions
|
|
@ -45,9 +45,9 @@ static void idle(void) {
|
|||
static void reshape(int width, int height) {
|
||||
GLfloat lpos[4];
|
||||
|
||||
lpos[0] = 2;
|
||||
lpos[1] = 2;
|
||||
lpos[2] = 2;
|
||||
lpos[0] = 1;
|
||||
lpos[1] = 1;
|
||||
lpos[2] = 1;
|
||||
lpos[3] = 0;
|
||||
|
||||
glViewport(0, 0, width, height);
|
||||
|
|
@ -69,6 +69,7 @@ static void init(void) {
|
|||
glEnable(GL_LIGHT0);
|
||||
glEnable(GL_COLOR_MATERIAL);
|
||||
glEnable(GL_CULL_FACE);
|
||||
glEnable(GL_NORMALIZE);
|
||||
|
||||
glColorMaterial(GL_FRONT_AND_BACK, GL_AMBIENT_AND_DIFFUSE);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue