Hi all, I try my best not to bug people on here with the same question too much as I like to learn rather than have things done for me, but I seem to be at a total impasse.
I've been coding for days trying to use multiple lights with shaders. What I would LIKE the program to do is to cast shadows and make use of some sort of normal/parallax/relief mapping on my surfaces, but I would like it to be able to do this using MULTIPLE lights that I have in my scene. I know that it's a memory hog, etc, but it happens in so many games (not baked lighting, but dynamic lighting) that I feel like I'm missing something simple.
So I've coded up a small mockup of what I'm trying to achieve and attached it to this post to see if anyone knowledgeable in shaders would be willing to take a look at it and tell me what I'm doing wrong.
What you'll find in the zip is a project and assets to load up a demo level created using cloned geometry which the player can move around in using a grid-based movement system (not smooth scrolling, I'm afraid, as I'm trying to simulate what I'll be using this for)
I've put a constant at the top of the code that when set to 1 will enable shaders. That way you can see what the level looks like first. When I enable shaders, however, it just all goes black. I've been researching this, reading up on it, trialling examples and doing my head in trying to make it work, but I'm finally completely stuck, so if someone could please give me a hand, that would be amazing.
Please note, I'm not looking for someone to write this for me. I want to learn so that I can better understand what I'm working with here!
Malevolence: The Sword of Ahkranox
www.msoa-game.com
www.facebook.com/malevolencegame