Greetings,
I have a small query, when setting the position of a light source:
e.g.
float[] lightPosition = {0.0f, 5.0f, 5.0f, 0.0f};
gl.glLightfv(GL11.GL_LIGHT0, GL11.GL_POSITION, lightPosition, 0);
I see it takes an array of four values - why is this? I assume you are passing a position or direction (x, y, z, ?).
Hopefully someone can enlightening me.
Cheers,
James