src/imports/PerformanceMetrics/2.0/shaders/bargraph.vert
raw| 1 | #version 440 |
| 2 | |
| 3 | layout(location = 0) in vec4 qt_Vertex; |
| 4 | layout(location = 1) in vec2 qt_MultiTexCoord0; |
| 5 | |
| 6 | layout(location = 0) out vec2 coord; |
| 7 | |
| 8 | layout(std140, binding = 0) uniform buf { |
| 9 | mat4 qt_Matrix; |
| 10 | float qt_Opacity; |
| 11 | float shift; |
| 12 | float maximumValue; |
| 13 | vec4 color; |
| 14 | float threshold; |
| 15 | vec4 aboveThresholdColor; |
| 16 | }; |
| 17 | |
| 18 | void main() { |
| 19 | coord = qt_MultiTexCoord0 + vec2(shift, 0.0); |
| 20 | gl_Position = qt_Matrix * qt_Vertex; |
| 21 | } |