|
From: <axl...@us...> - 2009-08-08 23:07:57
|
Revision: 461
http://hgengine.svn.sourceforge.net/hgengine/?rev=461&view=rev
Author: axlecrusher
Date: 2009-08-08 23:07:49 +0000 (Sat, 08 Aug 2009)
Log Message:
-----------
temporary fix for full screen quad and lighting
Modified Paths:
--------------
Mercury2/src/FullscreenQuad.cpp
Modified: Mercury2/src/FullscreenQuad.cpp
===================================================================
--- Mercury2/src/FullscreenQuad.cpp 2009-08-08 13:00:20 UTC (rev 460)
+++ Mercury2/src/FullscreenQuad.cpp 2009-08-08 23:07:49 UTC (rev 461)
@@ -6,7 +6,8 @@
FullscreenQuad::FullscreenQuad()
{
m_matrix = MercuryMatrix::Identity();
- m_matrix.Scale(2,2,1);
+ m_matrix.Transotale(0,0,-1,0,0,0,2,2,0.01);
+// m_matrix.Scale(2,2,1);
m_matrix.Transpose();
}
@@ -14,16 +15,18 @@
{
glMatrixMode(GL_MODELVIEW);
glPushMatrix();
+// glLoadIdentity();
glLoadMatrixf( m_matrix.Ptr() ); //this is OK
glMatrixMode(GL_PROJECTION);
glPushMatrix();
- glLoadIdentity();
+// glLoadIdentity();
Quad::Render( node );
glPopMatrix();
- glMatrixMode(GL_MODELVIEW); glPopMatrix();
+ glMatrixMode(GL_MODELVIEW);
+ glPopMatrix();
}
FullscreenQuad* FullscreenQuad::Generate()
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|