Jump to content

  • Log In with Google      Sign In   
  • Create Account

Quick DirectX Texture Transparency Question Regarding Shaders


Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.

  • You cannot reply to this topic
1 reply to this topic

#1 kamal7   Members   -  Reputation: 140

Like
0Likes
Like

Posted 01 April 2014 - 06:26 PM

How do I go about changing the transparency of a texture in my pixel shader? Which parameters can I manupulate (does the COLOR0 contain an alpha value)? Do I need to do some "blending" for it to take effect or is blending the only aspect to it (if so does this imply that its impossible to do this in pixel shaders to blend with the render target)?



Sponsor:

#2 kamal7   Members   -  Reputation: 140

Like
1Likes
Like

Posted 01 April 2014 - 07:09 PM

I found out how to do it. The hint I needed was that the max alpha value in the shader is represented by 1.0






Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.



PARTNERS