summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--chickadee/render/sprite.scm10
1 files changed, 5 insertions, 5 deletions
diff --git a/chickadee/render/sprite.scm b/chickadee/render/sprite.scm
index d8ef363..0f6419c 100644
--- a/chickadee/render/sprite.scm
+++ b/chickadee/render/sprite.scm
@@ -41,22 +41,22 @@
in vec2 position;
in vec2 tex;
-out vec2 frag_tex;
+out vec2 fragTex;
uniform mat4 mvp;
void main(void) {
- frag_tex = tex;
+ fragTex = tex;
gl_Position = mvp * vec4(position.xy, 0.0, 1.0);
}
"
"
#version 130
-in vec2 frag_tex;
-uniform sampler2D color_texture;
+in vec2 fragTex;
+uniform sampler2D colorTexture;
void main (void) {
- gl_FragColor = texture2D(color_texture, frag_tex);
+ gl_FragColor = texture2D(colorTexture, fragTex);
}
")))