Changeset View
Changeset View
Standalone View
Standalone View
src/scenegraph/header_desktop.glsl
- This file was added.
1 | /* | ||||
---|---|---|---|---|---|
2 | * SPDX-FileCopyrightText: 2020 Arjen Hiemstra <ahiemstra@heimr.nl> | ||||
3 | * | ||||
4 | * SPDX-License-Identifier: LGPL-2.0-or-later | ||||
5 | */ | ||||
6 | | ||||
7 | // This file contains common directives needed for the shaders to work. | ||||
8 | // It is included as the very first bit in the shader. | ||||
9 | // Important: If a specific GLSL version is needed, it should be set in this | ||||
10 | // file. | ||||
11 | | ||||
12 | // This file is intended for desktop OpenGL version 2.1 or greater. | ||||
13 | | ||||
14 | #version 120 | ||||
15 | | ||||
16 | #ifndef lowp | ||||
17 | #define lowp | ||||
18 | #endif | ||||
19 | | ||||
20 | #ifndef mediump | ||||
21 | #define mediump | ||||
22 | #endif | ||||
23 | | ||||
24 | #ifndef highp | ||||
25 | #define highp mediump | ||||
26 | #endif |