File: default.vert

package info (click to toggle)
openmsx 21.0%2Bdfsg-3
  • links: PTS
  • area: main
  • in suites: sid
  • size: 28,132 kB
  • sloc: cpp: 244,928; xml: 54,344; tcl: 15,603; python: 5,335; perl: 281; sh: 78; makefile: 57
file content (17 lines) | stat: -rw-r--r-- 303 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
uniform mat4 u_mvpMatrix;
uniform vec3 texSize; // not used

attribute vec4 a_position;
attribute vec3 a_texCoord;

varying vec2 texCoord;
varying vec2 videoCoord;

void main()
{
	gl_Position = u_mvpMatrix * a_position;
	texCoord   = a_texCoord.xy;
#if SUPERIMPOSE
	videoCoord = a_texCoord.xz;
#endif
}