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

10 lines
199 B
Plaintext
Raw Normal View History

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