summaryrefslogtreecommitdiff
path: root/data/shaders
diff options
context:
space:
mode:
authorDavid Thompson <dthompson2@worcester.edu>2023-09-28 07:43:07 -0400
committerDavid Thompson <dthompson2@worcester.edu>2023-09-28 07:43:31 -0400
commit0297cf27b245cc3ef26fac5825366fa583452779 (patch)
tree3750bb9b3b17e2a3bdd8d255408ddf583d0704d2 /data/shaders
parent9ceb616f627b5d98bcb337bdc5f384108277a0ae (diff)
Fix GLSL 1.2 versions of a couple fragment shaders.
Diffstat (limited to 'data/shaders')
-rw-r--r--data/shaders/path-fill-frag.glsl2
-rw-r--r--data/shaders/pbr-frag.glsl12
2 files changed, 7 insertions, 7 deletions
diff --git a/data/shaders/path-fill-frag.glsl b/data/shaders/path-fill-frag.glsl
index ba9c5a6..e839318 100644
--- a/data/shaders/path-fill-frag.glsl
+++ b/data/shaders/path-fill-frag.glsl
@@ -7,7 +7,7 @@ out vec4 fragColor;
#endif
#ifdef GLSL120
-attribute vec2 fragPosition;
+varying vec2 fragPosition;
#else
in vec2 fragPosition;
#endif
diff --git a/data/shaders/pbr-frag.glsl b/data/shaders/pbr-frag.glsl
index 0986840..33c0616 100644
--- a/data/shaders/pbr-frag.glsl
+++ b/data/shaders/pbr-frag.glsl
@@ -26,12 +26,12 @@ struct Light {
};
#ifdef GLSL120
-attribute vec3 fragWorldPos;
-attribute vec3 fragNormal;
-attribute vec3 fragTangent;
-attribute vec2 fragTexcoord0;
-attribute vec2 fragTexcoord1;
-attribute vec4 fragColor0;
+varying vec3 fragWorldPos;
+varying vec3 fragNormal;
+varying vec3 fragTangent;
+varying vec2 fragTexcoord0;
+varying vec2 fragTexcoord1;
+varying vec4 fragColor0;
#else
in vec3 fragWorldPos;
in vec3 fragNormal;