summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Thompson <dthompson2@worcester.edu>2021-09-27 10:59:54 -0400
committerDavid Thompson <dthompson2@worcester.edu>2021-09-28 08:02:39 -0400
commit669624a8043710a2ed563d1324eb079cf5f05db6 (patch)
tree4cace354c227fccb2d7a8706b197d887b4f1ef88
parent04621aa849f312a91db00d4ea6787bce42f3a6a5 (diff)
Fix compatibility shims in PBR/Phong fragment shaders.
-rw-r--r--data/shaders/pbr-frag.glsl2
-rw-r--r--data/shaders/phong-frag.glsl2
2 files changed, 2 insertions, 2 deletions
diff --git a/data/shaders/pbr-frag.glsl b/data/shaders/pbr-frag.glsl
index e6bcdc5..95986a4 100644
--- a/data/shaders/pbr-frag.glsl
+++ b/data/shaders/pbr-frag.glsl
@@ -62,7 +62,7 @@ const float GAMMA = 2.2;
#ifndef GLSL330
// Compatibility shim for older GLSL versions.
-vec2 texture(sampler2D tex, vec2 coord) {
+vec4 texture(sampler2D tex, vec2 coord) {
return texture2D(tex, coord);
}
#endif
diff --git a/data/shaders/phong-frag.glsl b/data/shaders/phong-frag.glsl
index b07c8b0..979869e 100644
--- a/data/shaders/phong-frag.glsl
+++ b/data/shaders/phong-frag.glsl
@@ -46,7 +46,7 @@ const float GAMMA = 2.2;
#ifndef GLSL330
// Compatibility shim for older GLSL versions.
-vec2 texture(sampler2D tex, vec2 coord) {
+vec4 texture(sampler2D tex, vec2 coord) {
return texture2D(tex, coord);
}
#endif