This repository has been archived on 2025-03-10. You can view files and clone it, but cannot push or open issues or pull requests.
NFRev1/NFPackCreator/AssetBuild/base/shaders/cubemapVertex.shader
Grayson Riffe (Desktop) 9158de2f39 Added Cubemap
2021-09-06 01:06:47 -05:00

15 lines
225 B
GLSL

#version 330 core
layout(location = 0) in vec3 pos;
uniform mat4 view;
uniform mat4 proj;
out vec3 texCoord;
void main() {
texCoord = pos;
vec4 vertexPos = proj * view * vec4(pos, 1.0);
gl_Position = vertexPos.xyww;
}