Hi, I am trying to do simple lighting effects (no dynamic shadows, almost like a fog of war). Below is a screenshot of something that looks similar to what I am going for (this is not my game, just something I found from google)
I am using LPD3DXSPRITE to render things, and am currently running a single pixel shader that isn't doing anything right now. I have found a variety of strategies, from rendering a light map to a different surface (using SetRenderTarget), then converting that to a texture, and then passing that to the pixel shader, and then using that to determine what should be darkened (and potentially by how much).
This sounds pretty straightforward, but I need to learn how to do each of those steps. The problem is, I am having difficulty using the right terms to search. So my questions are:
1. Is this the right approach for something like the above screenshot?
2. If this isn't the right approach, can you please point me in the right direction?
3. If this is the right approach, what things should I be looking up to better understand how to do this?
Thanks in advanced!