From: <tr...@us...> - 2009-06-06 18:47:15
|
Revision: 1552 http://ultrastar-ng.svn.sourceforge.net/ultrastar-ng/?rev=1552&view=rev Author: tronic Date: 2009-06-06 18:47:08 +0000 (Sat, 06 Jun 2009) Log Message: ----------- Testing additive blending of pitch waves Modified Paths: -------------- trunk/game/notegraph.cc Modified: trunk/game/notegraph.cc =================================================================== --- trunk/game/notegraph.cc 2009-06-06 09:31:22 UTC (rev 1551) +++ trunk/game/notegraph.cc 2009-06-06 18:47:08 UTC (rev 1552) @@ -130,7 +130,7 @@ void NoteGraph::drawWaves(std::list<Player> const& players) { UseTexture tblock(m_wave); - + glBlendFunc(GL_SRC_ALPHA, GL_ONE); for (std::list<Player>::const_iterator p = players.begin(); p != players.end(); ++p) { glColor4f(p->m_color.r, p->m_color.g, p->m_color.b, m_notealpha); float const texOffset = 2.0 * m_time; // Offset for animating the wave texture @@ -183,5 +183,6 @@ } } glColor3f(1.0, 1.0, 1.0); + glBlendFunc(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA); } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |