diff options
author | David Thompson <dthompson2@worcester.edu> | 2018-09-06 09:39:37 -0400 |
---|---|---|
committer | David Thompson <dthompson2@worcester.edu> | 2018-09-06 09:39:37 -0400 |
commit | 7703e6646b2ea3db978bb1f749b2eb5b257867de (patch) | |
tree | 7796d70b5a5c45e4356b98e4472e993d241af338 /data/shaders | |
parent | 749adfc4101d11784bf8207c2f6cbe6b8638dd13 (diff) |
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.
Diffstat (limited to 'data/shaders')
-rw-r--r-- | data/shaders/pbr/pbr-frag.glsl | 4 | ||||
-rw-r--r-- | data/shaders/pbr/pbr-vert.glsl | 5 |
2 files changed, 4 insertions, 5 deletions
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); } |