-1

I know that specular lighting is also based on the view direction. But I can't find what the default view direction is in old OpenGL function glLight(.. GL_SPECULAR..). How does it determine the direction of the view?

genpfault
  • 51,148
  • 11
  • 85
  • 139

1 Answers1

0

In old OpenGL lighting is done in view space, where camera coordinates are (0, 0, 0), so view direction vector is equal to fragment's position.

Sedfer
  • 61
  • 5