Author Topic: ColorMask in shaders  (Read 3718 times)

ryan

  • Jr. Member
  • **
  • Thank You
  • -Given: 0
  • -Receive: 1
  • Posts: 90
    • View Profile
ColorMask in shaders
« on: August 09, 2012, 05:41:51 PM »
I'm playing around with a RenderTexture and NGUI for some full-screen post processing and noticed that all of the shaders are setting ColorMask to RGB.  (Inconvenient for me, because I want alpha values written out when rendering to a texture.)  Is there any specific reason for this, other than that alpha isn't really needed when rendering to the screen?  It looks like everything still works fine if I change it to RGBA, but I haven't tested thoroughly.  Am I better off using a replacement shader when rendering to a texture?

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: ColorMask in shaders
« Reply #1 on: August 09, 2012, 06:03:13 PM »
There is no particular reason for this. You can change it to RGBA if you like, or get rid of that line altogether.