Line | |
---|
1 | #ifndef _SKYPREETHAM_H__
|
---|
2 | #define _SKYPREETHAM_H__
|
---|
3 |
|
---|
4 |
|
---|
5 | namespace CHCDemoEngine{
|
---|
6 | class Vector3;
|
---|
7 | }
|
---|
8 |
|
---|
9 | class SkyPreetham
|
---|
10 | {
|
---|
11 | public:
|
---|
12 | // Constructor and destructor.
|
---|
13 | SkyPreetham(float turbitity);
|
---|
14 | virtual ~SkyPreetham();
|
---|
15 |
|
---|
16 | void Compute(const CHCDemoEngine::Vector3 &sunDir);
|
---|
17 |
|
---|
18 | protected:
|
---|
19 |
|
---|
20 | void RenderSunDisk();
|
---|
21 | void CreateSunQuad();
|
---|
22 |
|
---|
23 |
|
---|
24 | /// Members.
|
---|
25 | /* FEffect* mEffect;
|
---|
26 |
|
---|
27 | FEffect* mSunEffect;
|
---|
28 | FTexture2D* mSunTexture;
|
---|
29 | FVertexBuffer* mSunQuad;
|
---|
30 | */
|
---|
31 | float mTurbidity;
|
---|
32 | };
|
---|
33 |
|
---|
34 | #endif //_SKYPREETHAM_H__
|
---|
35 |
|
---|
Note: See
TracBrowser
for help on using the repository browser.