1 | #include "IllumVolumeRenderTechnique.h"
|
---|
2 |
|
---|
3 |
|
---|
4 | IllumVolumeRenderTechnique::IllumVolumeRenderTechnique(
|
---|
5 | unsigned long startFrame,
|
---|
6 | unsigned long illumVolumeUpdateInterval,
|
---|
7 | unsigned int illumTextureResolution,
|
---|
8 | unsigned int textureDepth,
|
---|
9 | bool useDistCalc,
|
---|
10 | bool useHierarchicalImpostor,
|
---|
11 | ElementaryRenderable* parentRenderable,
|
---|
12 | TechniqueGroup* parentTechniqueGroup)
|
---|
13 | :RenderTechnique( parentRenderable, parentTechniqueGroup)
|
---|
14 | {
|
---|
15 | this->startFrame = startFrame;
|
---|
16 | this->illumVolumeUpdateInterval = illumVolumeUpdateInterval;
|
---|
17 | this->illumTextureResolution = illumTextureResolution;
|
---|
18 | this->textureDepth = textureDepth;
|
---|
19 | this->useDistCalc = useDistCalc;
|
---|
20 | this->useHierarchicalImpostor = useHierarchicalImpostor;
|
---|
21 |
|
---|
22 | }
|
---|
23 |
|
---|
24 | IllumVolumeRenderTechnique::~IllumVolumeRenderTechnique()
|
---|
25 | {
|
---|
26 |
|
---|
27 | }
|
---|
28 |
|
---|
29 | void IllumVolumeRenderTechnique::update(unsigned long frameNum)
|
---|
30 | {
|
---|
31 | sharedRuns->updateRun(ILLUMRUN_LIGHTVOLUME_MAP, frameNum);
|
---|
32 | }
|
---|
33 |
|
---|
34 | void IllumVolumeRenderTechnique::runChanged(RenderingRunType runType, RenderingRun* run)
|
---|
35 | {
|
---|
36 | if(runType == ILLUMRUN_LIGHTVOLUME_MAP)
|
---|
37 | lightVolumeChanged(run);
|
---|
38 | }
|
---|
39 |
|
---|
40 | void IllumVolumeRenderTechnique::runUpdated(RenderingRunType runType, RenderingRun* run)
|
---|
41 | {
|
---|
42 | if(runType == ILLUMRUN_LIGHTVOLUME_MAP)
|
---|
43 | lightVolumeUpdated(run);
|
---|
44 | else if(runType == ILLUMRUN_HPP_IMPOSTOR)
|
---|
45 | hierarchicalImpostorUpdated(run);
|
---|
46 | }
|
---|