render: shader: Change shader variable naming convention to camel case.
authorDavid Thompson <dthompson2@worcester.edu>
Tue, 11 Dec 2018 22:47:36 +0000 (17:47 -0500)
committerDavid Thompson <dthompson2@worcester.edu>
Tue, 11 Dec 2018 22:47:36 +0000 (17:47 -0500)
chickadee/render/sprite.scm

index d8ef363..0f6419c 100644 (file)
 
 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);
 }
 ")))