webgl/public/shader/simple.vert

15 lines
256 B
GLSL
Raw Normal View History

2023-01-18 14:30:41 +00:00
precision mediump float;
2023-01-19 03:43:02 +00:00
attribute vec3 position;
2023-01-18 14:30:41 +00:00
attribute vec3 color;
2023-01-19 03:43:02 +00:00
uniform mat4 proj;
uniform mat4 view;
uniform mat4 tran;
2023-01-18 14:30:41 +00:00
varying vec3 color_pass;
void main() {
color_pass = color;
2023-01-19 03:43:02 +00:00
gl_Position = proj * view * tran * vec4(position, 1.0);
2023-01-18 14:30:41 +00:00
}