[Jahshaka-cvs] openlibraries/effects/shaders histogram.cg, NONE, 1.1
Status: Beta
Brought to you by:
jahshaka
From: Goncalo N. M. de C. <gl...@us...> - 2006-07-27 19:05:03
|
Update of /cvsroot/openlibraries/openlibraries/effects/shaders In directory sc8-pr-cvs3.sourceforge.net:/tmp/cvs-serv15114/effects/shaders Added Files: histogram.cg Log Message: + Cg histogram shader + offscreen support in ool (replication of oel which must go) --- NEW FILE: histogram.cg --- // fx - A compositing library representation. // Copyright (C) 2005-2006 Visual Media FX Ltd. // Released under the LGPL. // For more information, see http://www.openlibraries.org. half4 main( in half2 v_tex, uniform half min, uniform half max , uniform half4 channels, uniform samplerRECT inColor0 ) : COLOR { half4 color = h4texRECT( inColor0, v_tex ); half level = dot( channels, color ); if( level < min || level >= max ) discard; return color; } |