1 | #include "CausticCasterRenderTechnique.h"
|
---|
2 |
|
---|
3 | CausticCasterRenderTechnique::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 |
|
---|
21 | CausticCasterRenderTechnique::~CausticCasterRenderTechnique()
|
---|
22 | {
|
---|
23 |
|
---|
24 | }
|
---|
25 |
|
---|
26 | void 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 | void CausticCasterRenderTechnique::runUpdated(RenderingRunType runType, RenderingRun* run)
|
---|
37 | {
|
---|
38 | if(runType == ILLUMRUN_DISTANCE_CUBEMAP)
|
---|
39 | distanceCubeMapRunUpdated(run);
|
---|
40 | }
|
---|
41 |
|
---|
42 |
|
---|