mirror of
https://github.com/Doodle3D/Doodle3D-Core.git
synced 2024-12-22 19:13:49 +01:00
16 lines
319 B
Plaintext
16 lines
319 B
Plaintext
|
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;
|
||
|
}
|