fix: version directives need to come before comments (#4717)

even though https://www.khronos.org/opengl/wiki_opengl/index.php/Core_Language_(GLSL)#Version states the exact opposite
develop
jdrueckert 2021-05-26 22:56:04 +02:00 committed by GitHub
parent eccfa3030e
commit aac49336f2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 4 additions and 8 deletions

View File

@ -1,8 +1,7 @@
#version 330 core
// Copyright 2021 The Terasology Foundation
// SPDX-License-Identifier: Apache-2.0
#version 330 core
in vec2 v_uv0;
uniform sampler2D texDepth;

View File

@ -1,8 +1,7 @@
#version 330 core
// Copyright 2021 The Terasology Foundation
// SPDX-License-Identifier: Apache-2.0
#version 330 core
layout (location = 0) in vec3 in_vert;
layout (location = 1) in vec3 in_normal;
layout (location = 2) in vec2 in_uv0;

View File

@ -1,8 +1,7 @@
#version 330 core
// Copyright 2021 The Terasology Foundation
// SPDX-License-Identifier: Apache-2.0
#version 330 core
#define UNCHARTED_2_TONEMAP
// #define REINHARD_TONEMAP
// #define BURGESS_TONEMAP

View File

@ -1,8 +1,7 @@
#version 330 core
// Copyright 2021 The Terasology Foundation
// SPDX-License-Identifier: Apache-2.0
#version 330 core
layout (location = 0) in vec3 in_vert;
layout (location = 1) in vec3 in_normal;
layout (location = 2) in vec2 in_uv0;