DirectX Fullscreen Quad

Started by
-1 comments, last by beebs1 17 years, 1 month ago
Hiya, I'm implementing a deferred shading engine. I have the material pass working fine, it writes to 4 textures and I have checked their contents are correct by saving the textures as bitmaps. I need to use them to draw the final display now, and I was wondering if someone could suggest a way of doing this. My understanding is that I need to create a fullscreen quad, and then run the lighting shader over the quad once for each light, using the 'gbuffer' as input for the lighting calculations. Is this correct? Also, what FVF should I use for the quad? Is just using D3DFVF_XYZRHW alright, or do I need anything else? Thanks for any input :)

This topic is closed to new replies.

Advertisement