Files
Gruppe-01-fin/Projekte/mdga/client/src/main/resources/MatDefs/SelectObjectOutliner/Post15.vert
Felix 3e7d3dbc1b Fix
2024-11-26 16:18:33 +01:00

16 lines
368 B
GLSL

// Use 'in' for vertex attributes
in vec4 inPosition;
in vec2 inTexCoord;
// Use 'out' for passing data to the fragment shader
out vec2 texCoord;
void main() {
// Transform position to clip space
vec2 pos = inPosition.xy * 2.0 - 1.0;
gl_Position = vec4(pos, 0.0, 1.0);
// Pass texture coordinates to the fragment shader
texCoord = inTexCoord;
}