mirror of
https://github.com/13hannes11/LU_opengl_solarsystem_visualization.git
synced 2024-09-04 01:11:01 +02:00
added all project files
This commit is contained in:
14
shaders/cubemap.vs.glsl
Normal file
14
shaders/cubemap.vs.glsl
Normal file
@@ -0,0 +1,14 @@
|
||||
#version 330
|
||||
|
||||
layout(location = 0) in vec3 position;
|
||||
layout(location = 1) in vec3 texturePos;
|
||||
|
||||
out vec3 texCoord;
|
||||
|
||||
uniform mat4 CameraMatrix;
|
||||
uniform mat4 ModelMatrix;
|
||||
|
||||
void main() {
|
||||
gl_Position = CameraMatrix * ModelMatrix * vec4(position, 1.0);
|
||||
texCoord = vec3(texturePos.x, -texturePos.y, texturePos.z);
|
||||
}
|
||||
Reference in New Issue
Block a user