Scatter Sky Community Fixes

Fixes and Extends Features in the Scatter Sky Object and Shaders
This commit is contained in:
Ron Kapaun 2013-04-22 14:25:15 -05:00 committed by DavidWyand-GG
parent 88a319179b
commit 808f1a5beb
6 changed files with 188 additions and 95 deletions

View file

@ -60,7 +60,6 @@ class MatrixSet;
GFXDeclareVertexFormat( ScatterSkyVertex )
{
// .xyz = coords
Point3F point;
VectorF normal;
ColorF color;
@ -152,7 +151,7 @@ protected:
static const F32 smAtmosphereRadius;
static const F32 smViewerHeight;
#define CURVE_COUNT 4
#define CURVE_COUNT 5
FloatCurve mCurves[CURVE_COUNT];
@ -161,7 +160,7 @@ protected:
F32 mRayleighScattering;
F32 mRayleighScattering4PI;
F32 mSunSize;
F32 mMieScattering;
F32 mMieScattering4PI;
@ -246,6 +245,10 @@ protected:
GFXShaderConstHandle *mInverseWavelengthSC;
GFXShaderConstHandle *mNightInterpolantAndExposureSC;
GFXShaderConstHandle *mUseCubemapSC;
F32 mColorizeAmt;
ColorF mColorize;
GFXShaderConstHandle *mColorizeSC;
};
#endif // _SCATTERSKY_H_