~phablet-team/qtvideo-node/media-hub-3

« back to all changes in this revision

Viewing changes to src/shadervideoshader.cpp

  • Committer: CI bot
  • Author(s): Jim Hodapp
  • Date: 2014-10-22 16:19:10 UTC
  • mfrom: (50.1.7 qtvideo-node)
  • Revision ID: ps-jenkins@lists.canonical.com-20141022161910-5q1bmpgphrylekin
Rotate the video 90 degrees and do an orthographic projection when necessary, otherwise render same as always. Fixes: 1191934
Approved by: Ricardo Salveti

Show diffs side-by-side

added added

removed removed

Lines of Context:
75
75
        "varying highp vec2 qt_TexCoord;                     \n"
76
76
        "void main()                                         \n"
77
77
        "{                                                   \n"
78
 
        "  gl_FragColor = texture2D( sTexture, qt_TexCoord );\n"
 
78
        "  gl_FragColor = texture2D( sTexture, qt_TexCoord ) * vec4(opacity);\n"
79
79
        "}                                                   \n";
80
80
    return shader;
81
81
}