diff options
Diffstat (limited to 'data/shaders')
-rw-r--r-- | data/shaders/pbr-frag.glsl | 2 | ||||
-rw-r--r-- | data/shaders/phong-frag.glsl | 2 |
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 |