diff options
Diffstat (limited to 'tests/manual/scenegraph_lancelot/data/shared/shaders/subrect.vert')
-rw-r--r-- | tests/manual/scenegraph_lancelot/data/shared/shaders/subrect.vert | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/tests/manual/scenegraph_lancelot/data/shared/shaders/subrect.vert b/tests/manual/scenegraph_lancelot/data/shared/shaders/subrect.vert new file mode 100644 index 0000000000..2ab6f94c19 --- /dev/null +++ b/tests/manual/scenegraph_lancelot/data/shared/shaders/subrect.vert @@ -0,0 +1,11 @@ +uniform highp mat4 qt_Matrix; +attribute highp vec4 qt_Vertex; +attribute highp vec2 qt_MultiTexCoord0; +varying highp vec2 qt_TexCoord0; +uniform highp vec4 qt_SubRect_source; + +void main() +{ + qt_TexCoord0 = qt_SubRect_source.xy + qt_SubRect_source.zw * qt_MultiTexCoord0; + gl_Position = qt_Matrix * qt_Vertex; +} |