
#version 150 compatibility 

/// The input sampler which is to be mapped
/// to the output pixels
uniform sampler2D uni_smp_group ;
uniform sampler2D uni_smp_demo ;

uniform float uni_blend_group ;
uniform float uni_blend_demo ;
uniform float uni_blend_mix ;

void main()
{
	vec4 color_group = (vec4(1.0) - texture2D(uni_smp_group, gl_TexCoord[0].xy)) * uni_blend_group ;
	vec4 color_demo = (vec4(1.0) - texture2D(uni_smp_demo, gl_TexCoord[0].xy)) * uni_blend_demo ;
	
	gl_FragColor = mix(color_group, color_demo, uni_blend_mix) ;
	gl_FragColor.a = 1.0 ;
	
}