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/.
16 uniform float minCoordX;
17 uniform float maxCoordX;
18 out vec4 fragmentColor;
19 out vec3 positionWorldspace;
22 positionWorldspace = (M * vec4(vPosition,1)).xyz;
23 positionWorldspace.x = clamp(positionWorldspace.x, minCoordX, maxCoordX);
24 gl_Position = MVP * vec4(vPosition, 1);
25 fragmentColor = vColor;
28 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */