File: shader_copy_color.frag

package info (click to toggle)
meshlab 2020.09%2Bdfsg1-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 45,124 kB
  • sloc: cpp: 400,238; ansic: 31,952; javascript: 1,578; sh: 387; yacc: 238; lex: 139; python: 86; makefile: 29
file content (18 lines) | stat: -rw-r--r-- 424 bytes parent folder | download | duplicates (12)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
/* Copy step */

#extension GL_ARB_draw_buffers : enable

uniform sampler2D textureA;
uniform sampler2D textureB;
uniform sampler2D textureC;

void main (void) {

  vec4 bufferA = texture2D (textureA, gl_TexCoord[0].st);
  vec4 bufferB = texture2D (textureB, gl_TexCoord[0].st);
  vec4 bufferC = texture2D (textureC, gl_TexCoord[0].st);

  gl_FragData[0] = bufferA;
  gl_FragData[1] = bufferB;
  gl_FragData[2] = bufferC;
}