Jump to content

  • Log In with Google      Sign In   
  • Create Account

dragon.R

Member Since 02 Apr 2011
Offline Last Active Oct 21 2013 02:59 AM

#4965383 FXAA and Color Space

Posted by dragon.R on 01 August 2012 - 08:50 PM

I`ve read your code,you need to #define FXAA_GREEN_AS_LUMA 1,otherwise it will take the alpha of tex color as luminance,as your input alpha is always 1,nothing will be changed. And your parameters seemed to have some problems,try to read the annotation and check them.


#4965069 FXAA and Color Space

Posted by dragon.R on 31 July 2012 - 09:18 PM

If you want to understand the linear color space, try to google "gamma correction". Generally speaking, to the monitor, the relationship between luminance and color is not linear, but a Exponential curve. So in order to output the linear color, texture color was also been precorrected by an exponent value. So although you can see the correct color on the screen,the color you used before is nonlinear. This can cause problems in some algrithm,but in my work,the FXAA use nonlinear color space works well.


PARTNERS