Fix glTFViewer after shaderc update

Fragment shader outputs now require a location qualifier, that
glTFViewer was missing in its shaderc.
This commit is contained in:
Corentin Wallez 2018-01-12 14:49:31 -05:00 committed by Corentin Wallez
parent d15177d84e
commit d0d6e5cd20
1 changed files with 2 additions and 2 deletions

View File

@ -208,7 +208,7 @@ namespace {
layout(location = 0) in vec3 v_normal; layout(location = 0) in vec3 v_normal;
layout(location = 1) in vec2 v_texcoord; layout(location = 1) in vec2 v_texcoord;
out vec4 fragcolor; layout(location = 0) out vec4 fragcolor;
void main() { void main() {
const vec3 lightdir = normalize(vec3(-1, -2, 3)); const vec3 lightdir = normalize(vec3(-1, -2, 3));
@ -224,7 +224,7 @@ namespace {
layout(location = 0) in vec3 v_normal; layout(location = 0) in vec3 v_normal;
layout(location = 1) in vec2 v_texcoord; layout(location = 1) in vec2 v_texcoord;
out vec4 fragcolor; layout(location = 0) out vec4 fragcolor;
void main() { void main() {
const vec3 lightdir = normalize(vec3(-1, -2, 3)); const vec3 lightdir = normalize(vec3(-1, -2, 3));