From 7703e6646b2ea3db978bb1f749b2eb5b257867de Mon Sep 17 00:00:00 2001 From: David Thompson Date: Thu, 6 Sep 2018 09:39:37 -0400 Subject: data: shaders: Update WIP PBR shaders. They don't *anything* related to PBR, but they allow me to test glTF asset loading as I work towards full PBR support. --- data/shaders/pbr/pbr-frag.glsl | 4 ++-- data/shaders/pbr/pbr-vert.glsl | 5 ++--- 2 files changed, 4 insertions(+), 5 deletions(-) (limited to 'data/shaders') diff --git a/data/shaders/pbr/pbr-frag.glsl b/data/shaders/pbr/pbr-frag.glsl index 9699da6..a4790b8 100644 --- a/data/shaders/pbr/pbr-frag.glsl +++ b/data/shaders/pbr/pbr-frag.glsl @@ -1,5 +1,5 @@ -#version 330 +#version 130 void main (void) { - gl_FragColor = vec4(1.0, 0.0, 0.0, 1.0); + gl_FragColor = vec4(1.0, 0.0, 1.0, 1.0); } diff --git a/data/shaders/pbr/pbr-vert.glsl b/data/shaders/pbr/pbr-vert.glsl index d3d7eca..938f475 100644 --- a/data/shaders/pbr/pbr-vert.glsl +++ b/data/shaders/pbr/pbr-vert.glsl @@ -1,9 +1,8 @@ -#version 330 +#version 130 in vec3 position; -in vec3 normal; uniform mat4 mvp; void main(void) { - gl_Position = mvp * vec4(position.xyz, 1.0); + gl_Position = mvp * vec4(position.xyz, 1.0); } -- cgit v1.2.3