summaryrefslogtreecommitdiff
path: root/data/shaders/pbr-frag.glsl
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 /data/shaders/pbr-frag.glsl
parent04621aa849f312a91db00d4ea6787bce42f3a6a5 (diff)
Fix compatibility shims in PBR/Phong fragment shaders.
Diffstat (limited to 'data/shaders/pbr-frag.glsl')
-rw-r--r--data/shaders/pbr-frag.glsl2
1 files changed, 1 insertions, 1 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