I'm still learning DirectX from a book. It says that a graphiccards can only handle 15 lights. I'm just a bit confused , there are a lot of games using more lights, or are this just some alpha blending tricks or what ever?
|
Your title mentions DirectX 9, which is almost a decade old and a lot has happened in the graphics space since then. I assume your book is referring to a limit on lights in the fixed function pipeline (FFP). I always thought there was a maximum of 8 lights in DirectX9 class FFP. But remember that this was 8 'active' lights, you could have many more lights but they did not have any effect until they were made active. Current versions of Directx (and Opengl) have removed the FFP so they don't implicitly support any lights. All the lighting is done in the shader. However modern shader programming, pretty much allow for unlimited number of lights. Back in the day, a lot of lights would be simulated by things like "light mapping" (basically baking in the lighting into textures). |
|||||||||
|