LearnOpenGL/Shaders/HDRSkybox.vs

16 lines
288 B
Plaintext
Raw Normal View History

2023-06-02 16:01:45 +00:00
#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;
}