Currently I'm working on my game, I'm stuck with lights and shadows. I figured out how to make shadows with only 1 light source, but how to do it if you have more light sources? How to pass OpenGL 8 light sources limit?
I'm working with C++, OpenGL and SDL.
My suggestion is to skip all the tutorials about fixed function pipeline and go straight to the GL3.3+ era: see: https://github.com/McNopper/OpenGL for some tutorials.
Anyway, if you are talking about shadow-mapping, then you decide how many lights an object can support (even on a per-object basis) and in your shader :
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.