Jump to content
  • Advertisement
Sign in to follow this  
Paul C Skertich

Shadow Mapping Deferred Shading or Forward Pass?

This topic is 1425 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

I'm try to implemend shadow mapping in my deferred shading and I was aquiring the best approach. Whether it would be forward passing mixed with the deferred rendering or if I can create a depth map in the deferred buffer. When i attempt to create a depth map in the deferred for a light in the deferrer buffer - the scene turns black. I believe it's my mistake in the shader part.

 

The deferred rendering is using DXGI_FORMAT_R16G16B16A_UNORM. Does the Depth Map have to be a certain texture format for the render target?

Share this post


Link to post
Share on other sites
Advertisement

I don't remember what texture formats that depth buffers need, but if you're trying to create a texture for the depth buffer, and you're giving it the depth buffer binding flags, it should error out if it's an unsupported format. 

 

I would go and check to see if there are any failures when creating the buffer first.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!