Skip to content

Instantly share code, notes, and snippets.

@yorung
Created March 28, 2016 16:38
Show Gist options
  • Select an option

  • Save yorung/ce1ca8eadfe87286693d to your computer and use it in GitHub Desktop.

Select an option

Save yorung/ce1ca8eadfe87286693d to your computer and use it in GitHub Desktop.
A simple GLSL vertex shader
#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