LearnOpenGL/Shaders/HDRSkybox.vs
2023-06-02 18:01:45 +02:00

16 lines
288 B
GLSL

#version 460 core
layout (location = 0) in vec3 aPos;
uniform mat4 projection;
uniform mat4 view;
out vec3 localPos;
void main(){
localPos = aPos;
mat4 rotView = mat4(mat3(view));
vec4 clipPos = projection * rotView * vec4(localPos,1.0);
gl_Position = clipPos.xyww;
}