Simple lighting
BlitzMax Forums/OpenGL Module/Simple lighting
| ||
I'm trying to make some simple lighting, but nothing happes. This is my approach:glEnable(GL_LIGHTING) glLightiv(GL_LIGHT1, GL_AMBIENT, [128, 128, 128, 255]) glLightiv(GL_LIGHT1, GL_DIFFUSE, [255, 255, 255, 255]) glLightfv(GL_LIGHT1, GL_POSITION, [-2.0, 1.0, -25.0, 1.0]) glEnable(GL_LIGHT1) I'm thinking the problem may lie with those arrays in the last parameters... How should I do them? A simple lighting setup example would also be very welcome. |