• Advertisement
Sign in to follow this  

Blending without changing the alpha source

This topic is 1171 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

Hi,

I have a GBuffer with RGB = albedo and Alpha = Lighting Model (float converted to int).

The problem is when I render decal the alpha is modified, then I have bad rendering.

http://msdn.microsoft.com/en-us/library/windows/desktop/ff476087%28v=vs.85%29.aspx

The best way to avoid this conflict is to set the RenderTargetWriteMask of D3D11_RENDER_TARGET_BLEND_DESC to only write RGB ?

Thanks for the help

Share this post


Link to post
Share on other sites
Advertisement

Well did you try disabling output to alpha channel? Did it work?

 

Cheers!

Share this post


Link to post
Share on other sites

Yea that's the question, using opengl that's : glColorMask(GL_TRUE,GL_TRUE,GL_TRUE,GL_FALSE);

But using Direct3D11 I didn't found a good doc about it, just the blend setup, that's why I asked.

Share this post


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

  • Advertisement