Light at objects

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

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.