mirror of
https://gitea.nishi.boats/pyrite-dev/milsko
synced 2026-01-05 00:50:53 +00:00
fix
git-svn-id: http://svn2.nishi.boats/svn/milsko/trunk@162 b9cfdab3-6d41-4d17-bbe4-086880011989
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user