Mewa Film User's Guide/Nodes Reference/Over node

About the Over node
With the over node you can layer two images, and control how much they should blend.



Internally the over node does a digital compositing, also known as alpha blending.

The over node has two inputs. The first input, on the left side, is the background. The second input is the foreground. The output image has the same size as the background image input.

Blend


Sets the blend value. The blend value ranges between 0 and 1, where 1 ...

Tested Hardware
The following table shows the result of tested graphics hardware on this effect.

You can check what your graphics hardware is by selecting the menu Help >> System Info.

Source
This MFX file comes with the installation of Mewa Film. You can find it in Mewa Film installation directory inside the folder effects.



 

    

 void main(void) { gl_TexCoord[0] = gl_MultiTexCoord0; gl_TexCoord[1] = gl_MultiTexCoord1; gl_Position = ftransform; } 

 uniform sampler2DRect back; uniform sampler2DRect front;

uniform float alpha; void main(void) {

gl_FragColor = texture2DRect(back, gl_TexCoord[0].st )*alpha + texture2DRect(front, gl_TexCoord[0].st)*(1-alpha);

} 

