Jump to content

  • Log In with Google      Sign In   
  • Create Account

We're offering banner ads on our site from just $5!

1. Details HERE. 2. GDNet+ Subscriptions HERE. 3. Ad upload HERE.


#Actuallomateron

Posted 16 May 2013 - 07:43 PM

I am rendering to a 2D texture R32G32B32A32 with blending enabled and the blending adds the value the pixel shader returns to the value that render target already has. 

The question is:

Is there an easy and fast way to make the pixel shader reset the value of the render target texel to float4(0.0f,0.0f,0.0f,0.0f), when a condition inside the pixel shader is true?

without having to copy paste the render target values to a shader resource. or making a ping pong render targets.


#1lomateron

Posted 16 May 2013 - 07:42 PM

I am rendering to a 2D texture R32G32B32A32 with blending enabled and the blending adds the value the pixel shader returns to the value that render target already has. 

The question is:

Is there an easy way to make the pixel shader reset the value of the render target texel to float4(0.0f,0.0f,0.0f,0.0f), when a condition inside the pixel shader is true?

without having to copy paste the render target values to a shader resource. or making a ping pong render targets.

 

 


PARTNERS