diff options
Diffstat (limited to 'assets/shaders/skybox.vert')
-rw-r--r-- | assets/shaders/skybox.vert | 19 |
1 files changed, 13 insertions, 6 deletions
diff --git a/assets/shaders/skybox.vert b/assets/shaders/skybox.vert index e9149d8..57c6399 100644 --- a/assets/shaders/skybox.vert +++ b/assets/shaders/skybox.vert @@ -1,11 +1,18 @@ #version 410 core -layout(location = 0) in vec3 inPos; +layout(location = 0) in vec3 inPosition; +layout(location = 1) in vec3 inNormal; +layout(location = 2) in vec2 inTexCoords; -uniform In { - vec3 textureDir; -} inc; +uniform Camera { + mat4 view; + mat4 proj; + vec4 viewPos; +} cam; + +out vec3 TexCoords; void main() { - -}
\ No newline at end of file + TexCoords = inPosition; + gl_Position = cam.proj * cam.view * vec4(inPosition, 1.0); +} |