source: trunk/BUTE/Ogre/FinalRenderingRuns/CAURenderFinalPass.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 "CAURenderFinalPass.h"
7
8
9CAURenderFinalPass::CAURenderFinalPass(
10                        Root* mRoot):ManagedOgreRenderTexturePass(mRoot, ManagedOgreRenderTexturePass::noRenderTargetName,1,1)
11{
12        effectWrapper->createMaterial("CAURenderFinalPass");
13}
14
15void CAURenderFinalPass::onRenderStart(NameValuePairList* namedParams){
16        effectWrapper->SetTechniqueToUse(0);
17        effectWrapper->BeginPass();
18        effectWrapper->SetVertexProgramParameters();
19        effectWrapper->SetMatrix("g_mWorldViewProj",g_mWorldViewProj);
20}
21
22
23void CAURenderFinalPass::onRenderEnd(NameValuePairList* namedParams)
24{
25        effectWrapper->EndPass();
26}
27
28Matrix4 CAURenderFinalPass::getWorldViewProj()
29{
30        return g_mWorldViewProj;
31}
32
33void CAURenderFinalPass::setWorldViewProj( Matrix4 matrix4 )
34{
35        g_mWorldViewProj = matrix4;
36}
Note: See TracBrowser for help on using the repository browser.