source: GTP/branches/IllumWPdeliver2008dec/IlluminationWP/source/IllumModule/src/RenderTechniques/CausticCasterRenderTechnique.cpp @ 3255

Revision 3255, 1.3 KB checked in by szirmay, 15 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
36void CausticCasterRenderTechnique::runUpdated(RenderingRunType runType, RenderingRun* run)
37{
38        if(runType == ILLUMRUN_DISTANCE_CUBEMAP)
39                distanceCubeMapRunUpdated(run);
40}
41
42
Note: See TracBrowser for help on using the repository browser.