Jump to content

View more

Image of the Day

The night is still, but the invasion brings chaos. #screenshotsaturday #hanako #indiegame #gameart #ue4 #samurai https://t.co/cgILXuokoS
IOTD | Top Screenshots

The latest, straight to your Inbox.

Subscribe to GameDev.net Direct to receive the latest updates and exclusive content.


Sign up now

Quick DirectX Texture Transparency Question Regarding Shaders

4: Adsense

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   

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)?



#2 kamal7   Members   

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.