webgl/public/shader/simple.vert
Tyler Murphy 30cf48cd70 cube
2023-01-18 22:43:02 -05:00

15 lines
No EOL
256 B
GLSL

precision mediump float;
attribute vec3 position;
attribute vec3 color;
uniform mat4 proj;
uniform mat4 view;
uniform mat4 tran;
varying vec3 color_pass;
void main() {
color_pass = color;
gl_Position = proj * view * tran * vec4(position, 1.0);
}