diff options
author | Tarja Sundqvist <tarja.sundqvist@qt.io> | 2022-11-11 09:34:54 +0200 |
---|---|---|
committer | Tarja Sundqvist <tarja.sundqvist@qt.io> | 2022-11-11 09:34:54 +0200 |
commit | f03440793e1638687d0754b82d206817dc3775e7 (patch) | |
tree | 7d65fb417c9090b8e18a7d9e450573d7e541f72a /src/qtmultimediaquicktools/shaders/rectsampler.vert | |
parent | 981ed7e4ecfcc27cbe9c0492b31f89386335155c (diff) | |
parent | 8ac4ea8582eed62332e3861240415c7d4fa6b140 (diff) |
Merge remote-tracking branch 'origin/tqtc/lts-5.15.8' into tqtc/lts-5.15-opensourcev5.15.8-lts-lgpl
Change-Id: Ibcb201720a2949a9c57d8bafc83afcaf5d8e20e5
Diffstat (limited to 'src/qtmultimediaquicktools/shaders/rectsampler.vert')
-rw-r--r-- | src/qtmultimediaquicktools/shaders/rectsampler.vert | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/qtmultimediaquicktools/shaders/rectsampler.vert b/src/qtmultimediaquicktools/shaders/rectsampler.vert new file mode 100644 index 000000000..762ec7e7e --- /dev/null +++ b/src/qtmultimediaquicktools/shaders/rectsampler.vert @@ -0,0 +1,10 @@ +uniform highp mat4 qt_Matrix; +uniform highp vec2 qt_videoSize; +attribute highp vec4 qt_VertexPosition; +attribute highp vec2 qt_VertexTexCoord; +varying highp vec2 qt_TexCoord; + +void main() { + qt_TexCoord = vec2(qt_VertexTexCoord.x * qt_videoSize.x, qt_VertexTexCoord.y * qt_videoSize.y); + gl_Position = qt_Matrix * qt_VertexPosition; +} |