~starkingdoms/starkingdoms

ref: 4174a429888ef87273b8513556a6a259b52798b9 starkingdoms/crates/client/src/shaders/vertex.glsl -rw-r--r-- 217 bytes
4174a429 — ghostly_zsh camera and other transform added, also bevy 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);
}