Files
FreeJ/xcode/CIAlphaFade.cikernel
xant 05acf2d04d Finally things are starting to work properly!! :)
- implemented a native Cocoa-OpenGL screen
- introduced CVLayer to be used as "binding class"
  within all native-cocoa layers
- runloop is now ruled by the Screen which will call
  Context::cafudda() only when the DisplayLink asks for
  a new videoframe to render
- both CVideoFile and CVideoGrabber are now working properly
  (effects are not available yet on the CVideoGrabber layer
  but I'm going to extend filtering functionalities to
  the videograbber asap)
2009-02-24 23:07:36 +01:00

9 lines
186 B
Plaintext

/*
Fades alpha of image.
*/
kernel vec4 alphaFade(sampler image, float Opacity)
{
vec4 pix = sample(image, samplerCoord(image));
pix.a = pix.a * Opacity;
return pix;
}