tests/auto/qshaderbaker/data/sgtexture.frag
raw| 1 | #version 440 |
| 2 | |
| 3 | layout(location = 0) in vec2 qt_TexCoord; |
| 4 | layout(location = 0) out vec4 fragColor; |
| 5 | |
| 6 | layout(std140, binding = 0) uniform buf { |
| 7 | mat4 qt_Matrix; |
| 8 | float opacity; |
| 9 | } ubuf; |
| 10 | |
| 11 | layout(binding = 1) uniform sampler2D qt_Texture; |
| 12 | layout(binding = 2) uniform sampler2D t1; |
| 13 | |
| 14 | void main() |
| 15 | { |
| 16 | fragColor = texture(qt_Texture, qt_TexCoord) * ubuf.opacity * texture(t1, qt_TexCoord); |
| 17 | } |