diff options
author | aavit <qt-info@nokia.com> | 2010-11-02 11:02:43 (GMT) |
---|---|---|
committer | aavit <qt-info@nokia.com> | 2010-11-02 11:02:43 (GMT) |
commit | 7c5259e91b4808424482f2a15838418bf4dcc00d (patch) | |
tree | ba3b0b787333288c79a91ea4ea6a944fd7be7b6b /src/plugins/platforms/openkode/shaders/vert.glslv | |
parent | a893f18cdaf1681e76413cbf637827371ada5865 (diff) | |
parent | 187185bf246b63f080cf2a59b6768756b399e72c (diff) | |
download | Qt-7c5259e91b4808424482f2a15838418bf4dcc00d.zip Qt-7c5259e91b4808424482f2a15838418bf4dcc00d.tar.gz Qt-7c5259e91b4808424482f2a15838418bf4dcc00d.tar.bz2 |
Merge branch 'master' of scm.dev.nokia.troll.no:qt/oslo-staging-2
Diffstat (limited to 'src/plugins/platforms/openkode/shaders/vert.glslv')
-rw-r--r-- | src/plugins/platforms/openkode/shaders/vert.glslv | 55 |
1 files changed, 55 insertions, 0 deletions
diff --git a/src/plugins/platforms/openkode/shaders/vert.glslv b/src/plugins/platforms/openkode/shaders/vert.glslv new file mode 100644 index 0000000..8a64f4d --- /dev/null +++ b/src/plugins/platforms/openkode/shaders/vert.glslv @@ -0,0 +1,55 @@ +/**************************************************************************** +** +** Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies). +** All rights reserved. +** Contact: Nokia Corporation (qt-info@nokia.com) +** +** This file is part of the plugins of the Qt Toolkit. +** +** $QT_BEGIN_LICENSE:LGPL$ +** No Commercial Usage +** This file contains pre-release code and may not be distributed. +** You may use this file in accordance with the terms and conditions +** contained in the Technology Preview License Agreement accompanying +** this package. +** +** GNU Lesser General Public License Usage +** Alternatively, this file may be used under the terms of the GNU Lesser +** General Public License version 2.1 as published by the Free Software +** Foundation and appearing in the file LICENSE.LGPL included in the +** packaging of this file. Please review the following information to +** ensure the GNU Lesser General Public License version 2.1 requirements +** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html. +** +** In addition, as a special exception, Nokia gives you certain additional +** rights. These rights are described in the Nokia Qt LGPL Exception +** version 1.1, included in the file LGPL_EXCEPTION.txt in this package. +** +** If you have questions regarding the use of this file, please contact +** Nokia at qt-info@nokia.com. +** +** +** +** +** +** +** +** +** $QT_END_LICENSE$ +** +****************************************************************************/ + +uniform vec2 window; // window size + +// Per-vertex attributes] +attribute vec2 pos_attr; +attribute vec2 texcoord_attr; + +// Output vertex color +varying vec2 texcoord_var; + +void main() +{ + gl_Position = vec4( (2.0 * pos_attr / window -1.0) * vec2(1.0, -1.0), 0.0, 1.0); + texcoord_var = texcoord_attr; +} |