mirror of
https://github.com/slendidev/lunar.git
synced 2026-01-30 16:28:58 +02:00
14
shaders/skybox.vert
Normal file
14
shaders/skybox.vert
Normal file
@@ -0,0 +1,14 @@
|
||||
#version 450
|
||||
|
||||
layout (location = 0) in vec3 in_position;
|
||||
layout (location = 0) out vec3 out_dir;
|
||||
|
||||
layout(push_constant) uniform constants {
|
||||
mat4 mvp;
|
||||
} PushConstants;
|
||||
|
||||
void main() {
|
||||
out_dir = in_position;
|
||||
vec4 pos = PushConstants.mvp * vec4(in_position, 1.0f);
|
||||
gl_Position = vec4(pos.xy, pos.w, pos.w);
|
||||
}
|
||||
Reference in New Issue
Block a user