From c2246783f80293640adbef3518dd9a4e2d050394 Mon Sep 17 00:00:00 2001 From: NishiOwO Date: Sat, 4 Oct 2025 15:14:53 +0000 Subject: [PATCH] fix git-svn-id: http://svn2.nishi.boats/svn/milsko/trunk@162 b9cfdab3-6d41-4d17-bbe4-086880011989 --- examples/glcube.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/examples/glcube.c b/examples/glcube.c index a82b89a..484f7d6 100644 --- a/examples/glcube.c +++ b/examples/glcube.c @@ -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); }