19 lines
318 B
GLSL
19 lines
318 B
GLSL
// vert //
|
|
|
|
void main(void) {
|
|
gl_Position = qgl_ftransform();
|
|
}
|
|
|
|
|
|
// frag //
|
|
|
|
uniform sampler2D tex_0, tex_1, tex_2, tex_3, tex_4;
|
|
|
|
void main(void) {
|
|
ivec2 tc = ivec2(gl_FragCoord.xy);
|
|
vec4 v0 = texelFetch(tex_0, tc, 0);
|
|
vec4 v1 = texelFetch(tex_1, tc, 0);
|
|
vec3 res = v0.rgb + v1.rgb;
|
|
qgl_FragColor.rgb = res;
|
|
}
|