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 3 of 3

Thread: nonunit directional light

  1. #1
    Advanced Member Frequent Contributor
    Join Date
    Oct 2009
    Posts
    595

    nonunit directional light

    What happens if the position of a directional light is a not a unit vector? Are results for parallel vector directional lights positions the same?

  2. #2
    Senior Member OpenGL Guru
    Join Date
    May 2009
    Posts
    4,732

    Re: nonunit directional light

    What happens if the position of a directional light is a not a unit vector?
    Then the lighting computation will not produce reasonable output.

    Are results for parallel vector directional lights positions the same?
    No. Two lights can have different colors or other parameters. But if the two lights are identical in every way, then the result will be like one brighter light.

  3. #3
    Advanced Member Frequent Contributor
    Join Date
    Oct 2009
    Posts
    595

    Re: nonunit directional light

    I vaguely recall, some people wrote this feature was exploited somehow by some. I suppose, non-unit position also makes the directional light brighter. Also, do the GL specs say something about non-unit directional light positions and where?

Posting Permissions

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