diff options
author | David Thompson <dthompson2@worcester.edu> | 2014-02-15 15:41:23 -0500 |
---|---|---|
committer | David Thompson <dthompson2@worcester.edu> | 2014-02-16 10:46:58 -0500 |
commit | 7b83863455ed697c22da14585781b9ab2eb8f242 (patch) | |
tree | 6820537c6fa10b10b1f11f439ad2d7026783869a | |
parent | f34f60a7a2e3e96a1c92e1000531589aa97b15fe (diff) |
Use vec2 instead of vec4 for vector2 uniforms.
* 2d/shader.scm: Use vec2 instead of vec4 when setting a vector2
uniform value.
-rw-r--r-- | 2d/shader.scm | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/2d/shader.scm b/2d/shader.scm index fb03439..8c47cdc 100644 --- a/2d/shader.scm +++ b/2d/shader.scm @@ -220,10 +220,7 @@ location." (register-uniform-setter! vector2? (lambda (location v) - ;; Use a vec4 instead of vec2 because it - ;; seems to be a lot easier to deal with - ;; vec4s. - (glUniform4f location (vx v) (vy v) 0 0))) + (glUniform2f location (vx v) (vy v)))) (register-uniform-setter! transform? (lambda (location t) |