File: main.frag

package info (click to toggle)
caveexpress 2.4%2Bgit20160609-3
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 48,824 kB
  • sloc: cpp: 66,239; ansic: 1,135; sh: 471; xml: 186; python: 74; makefile: 20
file content (10 lines) | stat: -rw-r--r-- 220 bytes parent folder | download | duplicates (13)
1
2
3
4
5
6
7
8
9
10
uniform sampler2D u_texture;
in vec2 v_texcoord;
in vec4 v_color;
out vec4 o_color;

void main(void) {
	vec4 color = texture2D(u_texture, v_texcoord);
	vec4 fcolor = v_color / 255.0;
	o_color = color * fcolor * 255.0;
}