File: shader_copy.frag

package info (click to toggle)
meshlab 2022.02%2Bdfsg1-1
  • links: PTS, VCS
  • area: main
  • in suites: sid, trixie
  • size: 47,348 kB
  • sloc: cpp: 536,635; ansic: 27,783; sh: 539; makefile: 36
file content (20 lines) | stat: -rw-r--r-- 406 bytes parent folder | download | duplicates (10)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
/* Copy step */
#version 120

#extension GL_ARB_draw_buffers : enable

uniform sampler2D textureA;
uniform sampler2D textureB;

uniform int level;

void main (void) {

  vec2 tex_coord = gl_TexCoord[0].st;

  vec4 bufferA = texture2DLod (textureA, tex_coord.st, float(level));
  vec4 bufferB = texture2DLod (textureB, tex_coord.st, float(level));

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