~starkingdoms/starkingdoms

ref: 76100ca42516d88511febf1b8ff4c302410eab87 starkingdoms/crates/client/src/shaders/vertex.glsl -rw-r--r-- 217 bytes
76100ca4 — ghostly_zsh networking, parts rendering 8 months ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
precision mediump float;

in vec2 pos;
in vec2 texcoord;

out vec2 v_texcoord;

uniform mat4 model;
uniform mat4 view;

void main() {
    v_texcoord = texcoord;
    gl_Position = view * model * vec4(pos, 0.0, 1.0);
}