Changeset View
Changeset View
Standalone View
Standalone View
src/scenegraph/header_desktop.glsl
- This file was added.
1 | /* | ||||
---|---|---|---|---|---|
2 | * Copyright 2020 Arjen Hiemstra <ahiemstra@heimr.nl> | ||||
3 | * | ||||
4 | * This program is free software; you can redistribute it and/or modify | ||||
5 | * it under the terms of the GNU Library General Public License as | ||||
6 | * published by the Free Software Foundation; either version 2, or | ||||
7 | * (at your option) any later version. | ||||
8 | * | ||||
9 | * This program is distributed in the hope that it will be useful, | ||||
10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||||
11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||||
12 | * GNU Library General Public License for more details | ||||
13 | * | ||||
14 | * You should have received a copy of the GNU Library General Public | ||||
15 | * License along with this program; if not, write to the | ||||
16 | * Free Software Foundation, Inc., | ||||
17 | * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. | ||||
18 | */ | ||||
19 | | ||||
20 | // This file contains common directives needed for the shaders to work. | ||||
21 | // It is included as the very first bit in the shader. | ||||
22 | // Important: If a specific GLSL version is needed, it should be set in this | ||||
23 | // file. | ||||
24 | | ||||
25 | // This file is intended for desktop OpenGL version 2.1 or greater. | ||||
26 | | ||||
27 | #version 120 | ||||
28 | | ||||
29 | #ifndef lowp | ||||
30 | #define lowp | ||||
31 | #endif | ||||
32 | | ||||
33 | #ifndef mediump | ||||
34 | #define mediump | ||||
35 | #endif | ||||
36 | | ||||
37 | #ifndef highp | ||||
38 | #define highp mediump | ||||
39 | #endif |