source: GTP/trunk/Lib/Illum/IllumModule/IllumModule/src/RenderTechniques/CausticCasterRenderTechnique.cpp @ 780

Revision 780, 1.2 KB checked in by szirmay, 18 years ago (diff)
Line 
1#include "CausticCasterRenderTechnique.h"
2
3CausticCasterRenderTechnique::CausticCasterRenderTechnique(unsigned long startFrame,
4                                                                                                unsigned long photonMapUpdateInterval,
5                                                                                                unsigned int photonMapResolution,
6                                                                                                unsigned int causticCubeMapResolution,
7                                                                                                bool updateAllFace,
8                                                                                                bool useDistance,
9                                                                                                ElementaryRenderable* parentRenderable,
10                                                                                                TechniqueGroup* parentTechniqueGroup)
11                                                        :RenderTechnique( parentRenderable, parentTechniqueGroup)
12{
13        this->useDistance = useDistance;
14        this->photonMapUpdateInterval = photonMapUpdateInterval;
15        this->photonMapResolution = photonMapResolution;
16        this->causticCubeMapResolution = causticCubeMapResolution;
17        this->startFrame = startFrame; 
18        this->updateAllFace = updateAllFace;
19}
20
21CausticCasterRenderTechnique::~CausticCasterRenderTechnique()
22{
23
24}
25
26void CausticCasterRenderTechnique::runChanged(RenderingRunType runType, RenderingRun* run)
27{
28        if(runType == ILLUMRUN_PHOTONMAP)
29                photonMapRunChanged(run);
30        if(runType == ILLUMRUN_CAUSTIC_CUBEMAP)
31                causticCubeMapRunChanged(run);
32        if(runType == ILLUMRUN_DISTANCE_CUBEMAP)
33                distanceCubeMapRunChanged(run);
34}
35 
36
37
Note: See TracBrowser for help on using the repository browser.