source: trunk/BUTE/Ogre/PreComputingRuns/PMFNormalMapPass.cpp @ 126

Revision 126, 953 bytes checked in by barsi, 19 years ago (diff)

Added a folder remotely

Line 
1// author:      Szabolcs Czuczor (BME-IIT)
2
3#include "Ogre.h"
4#include "OgreEffectWrapper.h"
5#include "ManagedOgreRenderTexturePass.h"
6#include "PMFNormalMapPass.h"
7
8/**
9 *      @brief: Construtor.
10 */
11PMFNormalMapPass::PMFNormalMapPass(
12                        Root* mRoot,unsigned int width,unsigned int height,
13                        TextureType texType, PixelFormat internalFormat,
14                        const NameValuePairList *miscParams,
15                        bool fullScreenQuadRenderer,String renderTextureName)
16:ManagedOgreRenderTexturePass(mRoot,renderTextureName,width,height,texType,internalFormat,miscParams,fullScreenQuadRenderer)
17{
18        this->setMaterialName("PMF/NormalMap");
19}
20
21/**
22 *      @brief: Destructor.
23 */
24PMFNormalMapPass::~PMFNormalMapPass() {
25}
26
27
28void PMFNormalMapPass::onRenderStart(NameValuePairList* namedParams){
29        effectWrapper->SetTechniqueToUse(0);
30        effectWrapper->BeginPass();
31}
32
33void PMFNormalMapPass::onRenderEnd(NameValuePairList* namedParams){
34        effectWrapper->EndPass();
35}
36
Note: See TracBrowser for help on using the repository browser.