v4k-git-backup/engine/art/shaders/vs_3_3_skybox.glsl

12 lines
201 B
Plaintext
Raw Normal View History

2023-08-10 21:53:51 +00:00
uniform mat4 u_mvp;
2023-09-10 14:46:07 +00:00
2023-08-10 21:53:51 +00:00
in vec3 att_position;
out vec3 v_direction;
2023-09-10 14:46:07 +00:00
2023-08-10 21:53:51 +00:00
void main() {
vec4 position = u_mvp * vec4(att_position, 0.0);
gl_Position = position.xyww;
v_direction = att_position;
}