1 | #include "ConvolvedCubeMapRenderTechnique.h"
|
---|
2 |
|
---|
3 |
|
---|
4 | ConvolvedCubeMapRenderTechnique::ConvolvedCubeMapRenderTechnique(unsigned long startFrame,
|
---|
5 | unsigned long cubeMapUpdateInterval,
|
---|
6 | unsigned int cubeMapResolution,
|
---|
7 | unsigned int reducedCubeMapResolution,
|
---|
8 | bool useDistCalc,
|
---|
9 | bool useFaceAngleCalc,
|
---|
10 | float distTolerance,
|
---|
11 | float angleTolerance,
|
---|
12 | bool updateAllFace,
|
---|
13 | bool renderSelf,
|
---|
14 | bool renderEnvironment,
|
---|
15 | ElementaryRenderable* parentRenderable,
|
---|
16 | TechniqueGroup* parentTechniqueGroup)
|
---|
17 |
|
---|
18 | :CubeMapRenderTechnique( startFrame, cubeMapUpdateInterval, cubeMapResolution,
|
---|
19 | useDistCalc, useFaceAngleCalc, distTolerance, angleTolerance,
|
---|
20 | updateAllFace, renderSelf, renderEnvironment, 0,
|
---|
21 | parentRenderable, parentTechniqueGroup),
|
---|
22 | RenderTechnique(parentRenderable, parentTechniqueGroup)
|
---|
23 | {
|
---|
24 | cubemapLayer = ILLUMRUN_COLOR_CUBEMAP;
|
---|
25 | this->reducedCubeMapResolution = reducedCubeMapResolution;
|
---|
26 | }
|
---|
27 |
|
---|
28 | ConvolvedCubeMapRenderTechnique::~ConvolvedCubeMapRenderTechnique()
|
---|
29 | {
|
---|
30 |
|
---|
31 | }
|
---|
32 |
|
---|
33 | void ConvolvedCubeMapRenderTechnique::runChanged(RenderingRunType runType, RenderingRun* run)
|
---|
34 | {
|
---|
35 | if(runType == ILLUMRUN_COLOR_CUBEMAP)
|
---|
36 | {
|
---|
37 | colorCubeMapRunChanged(run);
|
---|
38 | return;
|
---|
39 | }
|
---|
40 | if(runType == ILLUMRUN_REDUCED_CUBEMAP)
|
---|
41 | {
|
---|
42 | reducedCubeMapRunChanged(run);
|
---|
43 | return;
|
---|
44 | }
|
---|
45 | }
|
---|
46 |
|
---|
47 | void ConvolvedCubeMapRenderTechnique::update(unsigned long frameNum)
|
---|
48 | {
|
---|
49 | sharedRuns->updateRun(ILLUMRUN_COLOR_CUBEMAP, frameNum);
|
---|
50 | sharedRuns->updateRun(ILLUMRUN_REDUCED_CUBEMAP, frameNum);
|
---|
51 | }
|
---|