mirror of
https://github.com/Doodle3D/Doodle3D-Core.git
synced 2024-11-19 12:27:56 +01:00
16 lines
319 B
GLSL
16 lines
319 B
GLSL
varying vec2 vUv;
|
|
uniform sampler2D tDiffuse;
|
|
uniform sampler2D uTexArray[1];
|
|
|
|
void main() {
|
|
vec4 cDiffuse = texture2D(tDiffuse, vUv);
|
|
|
|
for (int i = 0; i < 1; i ++) {
|
|
vec4 cTex = texture2D(uTexArray[i], vUv);
|
|
cDiffuse = mix(cDiffuse, cTex, cTex.w);
|
|
// cDiffuse = cTex;
|
|
}
|
|
|
|
gl_FragColor = cDiffuse;
|
|
}
|