m2b-ar-tp2/shaders/fish.vert

14 lines
234 B
GLSL
Raw Normal View History

2021-10-06 19:49:42 +02:00
attribute vec3 position;
2021-10-06 23:41:17 +02:00
attribute vec2 uv;
varying vec2 fragment_uv;
2021-10-06 19:49:42 +02:00
uniform mat4 projection;
uniform mat4 view;
uniform mat4 model;
void main() {
2021-10-06 23:41:17 +02:00
fragment_uv = uv;
2021-10-06 19:49:42 +02:00
gl_Position = projection * view * model * vec4(position, 1);
}