source: trunk/BUTE/Ogre/FinalRenderingRuns/VRMRenderFinalPass.cpp @ 125

Revision 125, 928 bytes checked in by barsi, 19 years ago (diff)

Added a folder remotely

Line 
1//      author: Barnabas Aszodi (BME-IIT)
2
3#include "Ogre.h"
4#include "OgreEffectWrapper.h"
5#include "ManagedOgreRenderTexturePass.h"
6#include "VRMRenderFinalPass.h"
7
8
9VRMRenderFinalPass::VRMRenderFinalPass(
10                        Root* mRoot):ManagedOgreRenderTexturePass(mRoot, ManagedOgreRenderTexturePass::noRenderTargetName,1,1)
11{
12        effectWrapper->createMaterial("VRMRenderFinalPass");
13}
14
15void VRMRenderFinalPass::onRenderStart(NameValuePairList* namedParams){
16        effectWrapper->SetTechniqueToUse(0);
17        effectWrapper->BeginPass();
18        effectWrapper->SetVertexProgramParameters();
19        effectWrapper->SetMatrix("g_mWorldViewProj",g_mWorldViewProj);
20}
21
22
23void VRMRenderFinalPass::onRenderEnd(NameValuePairList* namedParams)
24{
25        effectWrapper->EndPass();
26}
27
28Matrix4 VRMRenderFinalPass::getWorldViewProj()
29{
30        return g_mWorldViewProj;
31}
32
33void VRMRenderFinalPass::setWorldViewProj( Matrix4 matrix4 )
34{
35        g_mWorldViewProj = matrix4;
36}
Note: See TracBrowser for help on using the repository browser.