ToyEngine/Exp3/Engine/Shaders/cubemap.vert

13 lines
216 B
GLSL
Raw Permalink Normal View History

2023-04-16 17:12:29 +08:00
#version 450 core
layout (location = 0) in vec3 aPos;
out vec3 WorldPos;
uniform mat4 projection;
uniform mat4 view;
void main()
{
WorldPos = aPos;
gl_Position = projection * view * vec4(WorldPos, 1.0);
}