Debian Codegraph @

src/imports/Components/Themes/Ambiance/shaders/magnifier.vert

raw
1 #version 440
2
3 layout(location = 0) in vec4 position;
4 layout(location = 1) in vec2 texcoord;
5
6 layout(location = 0) out vec2 qt_TexCoord0;
7
8 layout(std140, binding = 0) uniform buf {
9 mat4 qt_Matrix;
10 float qt_Opacity;
11
12 vec4 texCoordRange;
13 float scaleFactor;
14 vec4 outputColor;
15 } ubuf;
16
17 void main() {
18 vec2 texCoord = vec2(0.5 - 1.0 / (2.0 * ubuf.scaleFactor)) + texcoord / vec2(ubuf.scaleFactor);
19 qt_TexCoord0 = ubuf.texCoordRange.xy + texCoord*ubuf.texCoordRange.zw;
20 gl_Position = ubuf.qt_Matrix * position;
21 }