1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
|
float[] lightAmbient = {724136.247f, 146561.526f,51};
float[] lightDiffuse = {724136.247f-1, 146561.526f-20,0};
float[] lightSpecular = {724136.247f-1, 146561.526f-20,0};
float[] lightPosition = {724136.247f, 146561.526f,51};
gl.glLightfv(GL.GL_LIGHT0, GL.GL_AMBIENT, lightAmbient,0);
gl.glLightfv(GL.GL_LIGHT0, GL.GL_DIFFUSE, lightDiffuse,0);
gl.glLightfv(GL.GL_LIGHT0, GL.GL_SPECULAR, lightSpecular,0);
gl.glLightfv(GL.GL_LIGHT0, GL.GL_POSITION, lightPosition,0);
gl.glEnable(GL.GL_LIGHT0);
gl.glEnable(GL.GL_COLOR_MATERIAL);
gl.glEnable(GL.GL_LIGHTING); |
Partager