git-svn-id: http://svn2.nishi.boats/svn/milsko/trunk@162 b9cfdab3-6d41-4d17-bbe4-086880011989
This commit is contained in:
NishiOwO
2025-10-04 15:14:53 +00:00
parent 820e0a7182
commit c2246783f8

View File

@@ -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);
}