1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
3 * This file is part of the LibreOffice project.
5 * This Source Code Form is subject to the terms of the Mozilla Public
6 * License, v. 2.0. If a copy of the MPL was not distributed with this
7 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
12 attribute vec4 position;
13 attribute vec2 tex_coord_in;
14 attribute vec2 mask_coord_in;
15 attribute vec2 alpha_coord_in;
16 #ifdef USE_VERTEX_COLORS
17 attribute vec4 vertex_color_in;
20 varying vec2 tex_coord;
21 varying vec2 mask_coord;
22 varying vec2 alpha_coord;
23 #ifdef USE_VERTEX_COLORS
24 varying vec4 vertex_color;
28 uniform mat4 transform;
34 gl_Position = mvp * transform * position;
35 tex_coord = tex_coord_in;
36 mask_coord = mask_coord_in;
37 alpha_coord = alpha_coord_in;
38 #ifdef USE_VERTEX_COLORS
39 vertex_color = vertex_color_in / 255.0;
43 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */