Created
March 28, 2016 16:38
-
-
Save yorung/ce1ca8eadfe87286693d to your computer and use it in GitHub Desktop.
A simple GLSL vertex shader
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #version 310 es | |
| precision highp float; | |
| in vec3 POSITION; | |
| in vec2 TEXCOORD; | |
| in vec4 COLOR; | |
| out vec2 texcoord; | |
| out vec4 color; | |
| layout (binding = 0) uniform matUbo { | |
| layout (row_major) mat4 matProj; | |
| }; | |
| void main() { | |
| gl_Position = vec4(POSITION.xyz, 1) * matProj; | |
| texcoord = TEXCOORD; | |
| color = COLOR; | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment