OXYGENHUB
◆ main openmsx / share / shaders / default.frag
309 B · last changed chore(): initial commit 1 month ago source blame history raw
e8555c89 Andy McCall 1
uniform sampler2D tex;
2
uniform sampler2D videoTex;
3
4
varying vec2 texCoord;
5
varying vec2 videoCoord;
6
7
void main()
8
{
9
#if SUPERIMPOSE
10
	vec4 col = texture2D(tex, texCoord);
11
	vec4 vid = texture2D(videoTex, videoCoord);
12
	gl_FragColor = mix(vid, col, col.a);
13
#else
14
	gl_FragColor = texture2D(tex, texCoord);
15
#endif
16
}