Part of the Khronos Group
OpenGL.org

The Industry's Foundation for High Performance Graphics

from games to virtual reality, mobile phones to supercomputers

Results 1 to 2 of 2

Thread: Ambient light on without asking?

  1. #1
    Guest

    Ambient light on without asking?

    When I view a polygon from the front and the light is behind it the polygon is never black (0.0, 0.0, 0.0), more dark gray. There seems to be some kind of ambient light. I never enabled one. How do I switch this off? glDisable(GL_LIGHT0-8) doesn't work.

    -- Thomas

  2. #2
    Senior Member OpenGL Guru
    Join Date
    Feb 2000
    Location
    Sweden
    Posts
    3,115

    Re: Ambient light on without asking?

    The default scene amblient light is (0.2, 0.2, 0.2, 1.0). You can change it with glLightModelfv and GL_LIGHT_MODEL_AMBIENT.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •