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
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.
"...the results are undefined, and we all know what "undefined" means: it means it works during development, it works during testing, and it blows up in your most important customers' faces." --Scott Meyers
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......?