mirror of
https://github.com/ENSL/NS.git
synced 2024-11-28 15:22:06 +00:00
11 lines
300 B
Text
11 lines
300 B
Text
|
#version 330 core
|
||
|
|
||
|
layout(location = 0) in vec2 vertexPosition;
|
||
|
out vec2 texCoord;
|
||
|
|
||
|
void main() {
|
||
|
// Pass the vertex position to the fragment shader
|
||
|
texCoord = (vertexPosition + 1.0) * 0.5; // Convert vertex position to texture coordinates
|
||
|
gl_Position = vec4(vertexPosition, 0.0, 1.0);
|
||
|
}
|