diff options
author | Stijn Buys <ingar@osirion.org> | 2010-11-18 12:42:22 +0000 |
---|---|---|
committer | Stijn Buys <ingar@osirion.org> | 2010-11-18 12:42:22 +0000 |
commit | 445f4a201f205763a2241d87ef81a99b5dd55d26 (patch) | |
tree | c1ddda53238dd398416a514db82d76204afb67c6 /src/render | |
parent | 1a73a3c7d6e608754b0d183c97e40613abf2dcfd (diff) |
Corrected flare and light texture coordinates so they no longer appear rotated.
Diffstat (limited to 'src/render')
-rw-r--r-- | src/render/draw.cc | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/render/draw.cc b/src/render/draw.cc index af5cf41..cb8649f 100644 --- a/src/render/draw.cc +++ b/src/render/draw.cc @@ -959,11 +959,11 @@ void draw_pass_model_fx(float elapsed) // draw the quad gl::color(color); - glTexCoord2f(0, 1); + glTexCoord2f(1, 0); gl::vertex(location + (Camera::axis().up() - Camera::axis().left()) * light_size); glTexCoord2f(0, 0); gl::vertex(location + (Camera::axis().up() + Camera::axis().left()) * light_size); - glTexCoord2f(1, 0); + glTexCoord2f(0, 1); gl::vertex(location + (Camera::axis().up() * -1 + Camera::axis().left()) * light_size); glTexCoord2f(1, 1); gl::vertex(location + (Camera::axis().up() * -1 - Camera::axis().left()) * light_size); @@ -1055,11 +1055,11 @@ void draw_pass_model_fx(float elapsed) // draw the quad gl::color(color); - glTexCoord2f(0, 1); + glTexCoord2f(1, 0); gl::vertex(location + (flare_axis.up() + flare_axis.left()) * light_size); glTexCoord2f(0, 0); gl::vertex(location + (flare_axis.up() - flare_axis.left()) * light_size); - glTexCoord2f(1, 0); + glTexCoord2f(0, 1); gl::vertex(location + (flare_axis.up() * -1 - flare_axis.left()) * light_size); glTexCoord2f(1, 1); gl::vertex(location + (flare_axis.up() * -1 + flare_axis.left()) * light_size); |