Part of the Khronos Group
OpenGL.org

The Industry's Foundation for High Performance Graphics

from games to virtual reality, mobile phones to supercomputers

Page 3 of 3 FirstFirst 123
Results 21 to 23 of 23

Thread: Light at objects

  1. #21
    Advanced Member Frequent Contributor Aleksandar's Avatar
    Join Date
    Jul 2009
    Posts
    952

    Re: Light at objects

    What is the difference between the spot light and a "360° lamp"?

  2. #22
    Junior Member Regular Contributor
    Join Date
    Aug 2009
    Posts
    126

    Re: Light at objects

    A spot light only illuminates the objects in ONE direction, I would need a allround illuminating lanp like in blender.


    ^^


  3. #23
    Advanced Member Frequent Contributor Aleksandar's Avatar
    Join Date
    Jul 2009
    Posts
    952

    Re: Light at objects

    Quote Originally Posted by DarkShadow44
    A spot light only illuminates the objects in ONE direction, I would need a allround illuminating lanp like in blender.
    By default, a positional light radiates in all directions, but you can restrict it to producing a cone of illumination by using GL_SPOT_CUTOFF parameter. To reproduce omni-light effect in the shader is much easier than calculate spot-light effects, because you don't have to deal with the following parameters:
    - spotDirection,
    - spotCosCutoff,
    - spotExponent.
    So, if you have a complete code for the spot-light, just simplify it.

Posting Permissions

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