12345678910111213141516171819 |
- #version 300 es
- precision highp float;
- layout (location = 0) in vec2 position;
- layout (location = 1) in vec2 tex;
- layout (location = 2) in vec4 color;
- uniform mat4 view;
- uniform mat4 model;
- out vec2 varTex;
- out vec4 varColor;
- void main() {
- varTex = tex;
- varColor = color;
- gl_Position = view * model * vec4(position, 0.0, 1.0);
- }
|