2021-01-02 17:45:42 +01:00
|
|
|
#version 120
|
2020-12-28 17:36:45 +01:00
|
|
|
|
2021-01-02 17:45:42 +01:00
|
|
|
attribute vec3 in_pos;
|
2020-12-28 17:36:45 +01:00
|
|
|
|
2021-01-02 17:45:42 +01:00
|
|
|
varying vec3 tex_coords;
|
2020-12-28 17:36:45 +01:00
|
|
|
|
|
|
|
uniform mat4 proj;
|
|
|
|
uniform mat4 view;
|
|
|
|
|
|
|
|
void main() {
|
|
|
|
tex_coords = in_pos;
|
|
|
|
vec4 pos = proj * mat4(mat3(view)) * vec4(in_pos, 1.0);
|
|
|
|
gl_Position = pos.xyww;
|
|
|
|
}
|