Revision 126,
879 bytes
checked in by barsi, 20 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 "CAURenderPhotonHitMapPass.h"
|
---|
7 |
|
---|
8 | CAURenderPhotonHitMapPass::CAURenderPhotonHitMapPass(
|
---|
9 | Root* mRoot):ManagedOgreRenderTexturePass(mRoot,"NO_RENDER_TARGET",1,1)
|
---|
10 | {
|
---|
11 | effectWrapper->createMaterial("RenderPhotonHit");
|
---|
12 | }
|
---|
13 |
|
---|
14 | void CAURenderPhotonHitMapPass::onRenderStart(NameValuePairList* namedParams){
|
---|
15 | effectWrapper->SetTechniqueToUse(0);
|
---|
16 | effectWrapper->BeginPass();
|
---|
17 | effectWrapper->SetFragmentProgramParameters();
|
---|
18 | effectWrapper->SetFloat("g_fPower",g_fPower);
|
---|
19 | }
|
---|
20 |
|
---|
21 |
|
---|
22 | void CAURenderPhotonHitMapPass::onRenderEnd(NameValuePairList* namedParams)
|
---|
23 | {
|
---|
24 | effectWrapper->EndPass();
|
---|
25 | }
|
---|
26 |
|
---|
27 | float CAURenderPhotonHitMapPass::getPower()
|
---|
28 | {
|
---|
29 | return g_fPower;
|
---|
30 | }
|
---|
31 |
|
---|
32 | void CAURenderPhotonHitMapPass::setPower( float f )
|
---|
33 | {
|
---|
34 | g_fPower = f;
|
---|
35 | }
|
---|
Note: See
TracBrowser
for help on using the repository browser.