2016-07-03 20:12:22 +00:00
|
|
|
precision highp float;
|
|
|
|
|
2016-07-21 16:17:49 +00:00
|
|
|
uniform sampler2D uSource;
|
|
|
|
uniform sampler2D uMask;
|
|
|
|
uniform mat4 uMVP;
|
2017-11-11 11:36:39 +00:00
|
|
|
uniform mat4 uProjection = mat4(1.0);
|
2017-11-03 12:09:02 +00:00
|
|
|
uniform float uAlpha = 1.0;
|
2016-07-21 16:17:49 +00:00
|
|
|
uniform int uBlendMode;
|
2017-11-03 12:09:02 +00:00
|
|
|
uniform vec4 uViewport;
|
2016-07-03 20:12:22 +00:00
|
|
|
|
|
|
|
in vec2 vUv;
|
|
|
|
|
|
|
|
out vec4 outputColor;
|
|
|
|
|
|
|
|
vec4 Texture(sampler2D sampler, vec2 texCoords) {
|
|
|
|
return texture(sampler, texCoords);
|
|
|
|
}
|
|
|
|
|
|
|
|
void setOutputColor(vec4 color) {
|
|
|
|
outputColor = color;
|
|
|
|
}
|