summaryrefslogtreecommitdiffstats
path: root/src/demos/es2/openmax/shader/moviesimple.fp
blob: c7116410582edd56e124166c25c4421866eb9de7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21

#ifdef GL_ES
  #define MEDIUMP mediump
  #define HIGHP highp
#else
  #define MEDIUMP
  #define HIGHP
#endif

uniform   sampler2D     mgl_ActiveTexture;
varying   HIGHP vec4    mgl_texCoord;
varying   HIGHP vec4    frontColor;

void main (void)
{
  vec4 texColor = texture2D(mgl_ActiveTexture, mgl_texCoord.st);

  // mix frontColor with texture ..
  gl_FragColor = vec4(frontColor.rgb*texColor.rgb, frontColor.a);
}