Sign in to follow this  
StanIAm

Rendertarget doesn't get filled

Recommended Posts

Hey guys I have a question to you.I'm on writing an implementation for dual paraboloid shadowmapping.

By the way Iam using a deferred shading pipeline..so these are my steps:

 

1.Set gbuffer targets ( color,normal,position,depth,shadowmap <- this is the map I render the shadow to) and draw with my normal diffuse shader to the 5 targets, but fill the 5th shadowmap with a red color.

 

Then when all vertices are drawn I set the shadowmap shader which only fill the 5th rendertarget SV_TARGET4 with a blue color and draw all vertices a second time.

 

Then I set the backbuffer and display my gbuffers shadowmap texture but it is still red, so the shadowmap shader doesn't draw on it but why `??

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this