tests/manual/scenegraph_lancelot/data/shared/shaders/property_rhi.frag
raw| 1 | #version 440 |
| 2 | |
| 3 | layout(location = 0) in vec2 qt_TexCoord0; |
| 4 | layout(location = 0) out vec4 fragColor; |
| 5 | |
| 6 | layout(std140, binding = 0) uniform buf { |
| 7 | mat4 qt_Matrix; |
| 8 | float qt_Opacity; |
| 9 | float colorProperty; |
| 10 | } ubuf; |
| 11 | |
| 12 | void main() { |
| 13 | fragColor = vec4(qt_TexCoord0.x, qt_TexCoord0.y, ubuf.colorProperty, 1); |
| 14 | } |