Files
ResInsight/Fwk/VizFwk/LibRender/glsl/src_TextureGlobalAlpha.glsl
T

14 lines
403 B
GLSL
Raw Normal View History

2012-05-18 09:45:23 +02:00
uniform sampler2D u_texture2D;
uniform float u_alpha;
varying vec2 v_texCoord;
//--------------------------------------------------------------------------------------------------
/// Texture 2D source fragment
//--------------------------------------------------------------------------------------------------
vec4 srcFragment()
{
return vec4(texture2D(u_texture2D, v_texCoord).rgb, u_alpha);
}