| 56 | //----------------------------------------------------------------------------- |
| 57 | |
| 58 | Sun::Sun() |
| 59 | { |
| 60 | mNetFlags.set(Ghostable | ScopeAlways); |
| 61 | mTypeMask = EnvironmentObjectType | LightObjectType | StaticObjectType; |
| 62 | |
| 63 | mLightColor.set(0.7f, 0.7f, 0.7f); |
| 64 | mLightAmbient.set(0.3f, 0.3f, 0.3f); |
| 65 | mBrightness = 1.0f; |
| 66 | mSunAzimuth = 0.0f; |
| 67 | mSunElevation = 35.0f; |
| 68 | mCastShadows = true; |
| 69 | mStaticRefreshFreq = 250; |
| 70 | mDynamicRefreshFreq = 8; |
| 71 | |
| 72 | mAnimateSun = false; |
| 73 | mTotalTime = 0.0f; |
| 74 | mCurrTime = 0.0f; |
| 75 | mStartAzimuth = 0.0f; |
| 76 | mEndAzimuth = 0.0f; |
| 77 | mStartElevation = 0.0f; |
| 78 | mEndElevation = 0.0f; |
| 79 | |
| 80 | mLight = LightManager::createLightInfo(); |
| 81 | mLight->setType( LightInfo::Vector ); |
| 82 | |
| 83 | mFlareData = NULL; |
| 84 | mFlareState.clear(); |
| 85 | mFlareScale = 1.0f; |
| 86 | |
| 87 | mCoronaEnabled = true; |
| 88 | mCoronaScale = 0.5f; |
| 89 | mCoronaTint.set( 1.0f, 1.0f, 1.0f, 1.0f ); |
| 90 | mCoronaUseLightColor = true; |
| 91 | mCoronaMatInst = NULL; |
| 92 | |
| 93 | INIT_ASSET(CoronaMaterial); |
| 94 | |
| 95 | mMatrixSet = reinterpret_cast<MatrixSet *>(dMalloc_aligned(sizeof(MatrixSet), 16)); |
| 96 | constructInPlace(mMatrixSet); |
| 97 | |
| 98 | mCoronaWorldRadius = 0.0f; |
| 99 | mLightWorldPos = Point3F::Zero; |
| 100 | } |
| 101 | |
| 102 | Sun::~Sun() |
| 103 | { |
nothing calls this directly
no test coverage detected