Revision: 8543
          http://playerstage.svn.sourceforge.net/playerstage/?rev=8543&view=rev
Author:   natepak
Date:     2010-02-05 18:45:20 +0000 (Fri, 05 Feb 2010)

Log Message:
-----------
Added viewports to rt shader

Modified Paths:
--------------
    code/gazebo/trunk/server/rendering/OgreCreator.cc

Modified: code/gazebo/trunk/server/rendering/OgreCreator.cc
===================================================================
--- code/gazebo/trunk/server/rendering/OgreCreator.cc   2010-02-02 02:07:54 UTC 
(rev 8542)
+++ code/gazebo/trunk/server/rendering/OgreCreator.cc   2010-02-05 18:45:20 UTC 
(rev 8543)
@@ -34,6 +34,7 @@
 
 #include "config.h"
 
+#include "RTShaderSystem.hh"
 #include "Light.hh"
 #include "Material.hh"
 #include "Simulator.hh"
@@ -170,6 +171,8 @@
     double vfov = 2.0 * atan(tan(hfov / 2.0) / ratio);
     camera->setAspectRatio(ratio);
     camera->setFOVy(Ogre::Radian(vfov));
+
+    RTShaderSystem::Instance()->AttachViewport(cviewport);
   }
 
   return camera;


This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.

------------------------------------------------------------------------------
The Planet: dedicated and managed hosting, cloud storage, colocation
Stay online with enterprise data centers and the best network in the business
Choose flexible plans and management services without long-term contracts
Personal 24x7 support from experience hosting pros just a phone call away.
http://p.sf.net/sfu/theplanet-com
_______________________________________________
Playerstage-commit mailing list
Playerstage-commit@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/playerstage-commit

Reply via email to