how would i make a light in openGL that emits in all directions but only reaches so far...basicly a light with a radius?
any help will be much appreciated
-psychopath
Printable View
how would i make a light in openGL that emits in all directions but only reaches so far...basicly a light with a radius?
any help will be much appreciated
-psychopath
Look up the ways of setting Attenuation in OpenGL.
well you have to atenuate the light and I think you also want a spotlight. With linear attenuation and spotlight. look at the glLightfv with GL_SPOT_CUTOFF, GL_SPOT_DIRECTION and GL_SPOT_EXPONENT, also GL_LINEAR_ATTENUATION
hmmm.....nothing seems to be giving the desired effect......?