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