diff options
author | David Thompson <dthompson2@worcester.edu> | 2018-12-11 17:47:36 -0500 |
---|---|---|
committer | David Thompson <dthompson2@worcester.edu> | 2018-12-11 17:47:36 -0500 |
commit | 69a0cbdcb74da2511b53e0faa69bcf6eb2bb9fb2 (patch) | |
tree | de8830535687a219091735e84b7958424e6c0060 | |
parent | e777b012cb1fe58b55779af6464cac860d78ae96 (diff) |
render: shader: Change shader variable naming convention to camel case.
-rw-r--r-- | chickadee/render/sprite.scm | 10 |
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); } "))) |