I have gone down a long road with pixil lighting and I was wondering if it would be worth it to try something different.
Currently I have a scene broken into sections so I can omit them when not seen. It uses HLSL lighting with multiple lights:
It looks great, but there is a problem. On certain surfaces, when I get close to them, the frame rate dramatically fluctuates(30-50fps). When I'm not close to anything the frame rate is 60fps. The only thing that seems to keep it at 60 all the time is when I remove ALL the lights....
There are three parts to this question:
1. Am I doing something wrong in the shader? If so, please help me fix it.
2. Is there any better lighting method for normal mapping?
3. I was thinking about trying cube lighting. Will it work with normal mapping? Is it faster than pixil lighting?
e