[Jahshaka-cvs] openlibraries/effects/shaders histogram.frag, 1.1, 1.2
Status: Beta
Brought to you by:
jahshaka
From: Goncalo N. M. de C. <gl...@us...> - 2006-07-28 22:07:41
|
Update of /cvsroot/openlibraries/openlibraries/effects/shaders In directory sc8-pr-cvs3.sourceforge.net:/tmp/cvs-serv10014/effects/shaders Modified Files: histogram.frag Log Message: + histogram shader updates Index: histogram.frag =================================================================== RCS file: /cvsroot/openlibraries/openlibraries/effects/shaders/histogram.frag,v retrieving revision 1.1 retrieving revision 1.2 diff -u -d -r1.1 -r1.2 --- histogram.frag 28 Jul 2006 10:56:38 -0000 1.1 +++ histogram.frag 28 Jul 2006 13:34:22 -0000 1.2 @@ -16,7 +16,7 @@ { vec4 color = texture2D( inColor0, v_tex ); - float level = clamp( dot( channels, color ), 0.0, 1.0 ); + float level = clamp( dot( normalize( channels ), color ), 0.0, 1.0 ) * color.a; if( level < min || level >= max ) discard; |