ok so this is what I have so far. I made two types of point lights. they are perfect for what i need. What is left the cone shape light. Can someone please look at my code and see if I'm going in the right path or not.
Here are the images of both lights that workes perfectly.
and here is the image of the cone light that I have a problem with.
Clearly it looks nothing like a cone.
The function that i use to create the cone shape light is "CalculateConeLight".
ok. thanks guys. just one last thing. Is there anything I can do to my shader to gain more FPS? Is my shader code good enough? Sorry for being a noob, but I just started learning HLSL about a week ago.