summaryrefslogtreecommitdiffstats
path: root/tests/playground/externalsampler.vert
blob: 5420e20e00d8086ab5e04ec577018d3930c3a589 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#version 440

layout(location = 0) in vec4 vertexCoordsArray;
layout(location = 1) in vec2 textureCoordArray;
layout(location = 0) out vec2 textureCoords;

layout(std140, binding = 0) uniform buf {
    mat4 texMatrix;
};

void main()
{
    gl_Position = vertexCoordsArray;
    textureCoords = (texMatrix * vec4(textureCoordArray, 0.0, 1.0)).xy;
}