|
From: Tapio V. <aa...@us...> - 2009-11-09 22:14:08
|
Module: performous
Branch: master
Commit: 53072bd173d5ea816fc1220c1cf723a0c2f30bcb
Author: Tapio Vierros <tap...@gm...>
Date: Tue Nov 10 00:10:25 2009 +0200
Smoother 3d note appearing.
---
game/guitargraph.cc | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/game/guitargraph.cc b/game/guitargraph.cc
index 7d94ff6..663c13f 100644
--- a/game/guitargraph.cc
+++ b/game/guitargraph.cc
@@ -512,7 +512,7 @@ void GuitarGraph::drawNote(int fret, glutil::Color c, float tBeg, float tEnd, fl
float y = yBeg + fretWid;
if (m_use3d) {
y -= fretWid;
- glColor4fv(c);
+ c.a = clamp(time2a(tBeg)*2.0f,0.0f,1.0f); glColor4fv(c);
obj->draw(x, y, 0.0f);
y -= fretWid;
} else {
@@ -542,7 +542,7 @@ void GuitarGraph::drawNote(int fret, glutil::Color c, float tBeg, float tEnd, fl
} else {
// Too short note: only render the ring
if (m_use3d) {
- glColor4fv(c);
+ c.a = clamp(time2a(tBeg)*2.0f,0.0f,1.0f); glColor4fv(c);
obj->draw(x, time2y(tBeg), 0.0f);
} else {
c.a = time2a(tBeg); glColor4fv(c);
|