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 in vec3 vertexPositionModelspace;
13 in vec3 vertexNormalModelspace;
18 out vec3 positionWorldspace;
19 out vec3 normalCameraspace;
20 out vec4 fragBarColor;
27 gl_Position = P * V * M * vec4(vertexPositionModelspace,1);
29 positionWorldspace = (M * vec4(vertexPositionModelspace,1)).xyz;
31 normalCameraspace = normalize(mat3(V) * normalMatrix * vertexNormalModelspace);
33 fragBarColor = barColor;
36 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */