mirror of
https://github.com/dyne/FreeJ.git
synced 2026-02-11 15:20:48 +01:00
- 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)
9 lines
186 B
Plaintext
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;
|
|
} |