| 90 | |
| 91 | |
| 92 | VolumetricFog::VolumetricFog() |
| 93 | { |
| 94 | AssertFatal(VFRTM != NULL, "VolumetricFog Fatal Error: No Manager found"); |
| 95 | |
| 96 | if (!VFRTM->IsInitialized()) |
| 97 | VFRTM->Init(); |
| 98 | |
| 99 | mNetFlags.set(Ghostable | ScopeAlways); |
| 100 | |
| 101 | mTypeMask |= EnvironmentObjectType | StaticObjectType; |
| 102 | |
| 103 | mDeferredTarget = NULL; |
| 104 | mDepthBufferTarget = NULL; |
| 105 | mFrontBufferTarget = NULL; |
| 106 | |
| 107 | z_buf = NULL; |
| 108 | mTexture = NULL; |
| 109 | |
| 110 | mIsVBDirty = false; |
| 111 | mIsPBDirty = false; |
| 112 | |
| 113 | mFogColor.set(200, 200, 200, 255); |
| 114 | mFogDensity = 0.3f; |
| 115 | mIgnoreWater = false; |
| 116 | mReflect = false; |
| 117 | mCamInFog = false; |
| 118 | mResizing = false; |
| 119 | mFogReflStrength = 20.0; |
| 120 | mUseGlow = false; |
| 121 | mGlowStrength = 0.3f; |
| 122 | mGlowing = 0; |
| 123 | mModifLightRays = false; |
| 124 | mLightRayMod = 1.0f; |
| 125 | mOldLightRayStrength = 0.1f; |
| 126 | |
| 127 | mShapeLoaded = false; |
| 128 | mMinDisplaySize = 10.0f; |
| 129 | mFadeSize = 0.0f; |
| 130 | mCurDetailLevel = 0; |
| 131 | mNumDetailLevels = 0; |
| 132 | det_size.clear(); |
| 133 | |
| 134 | mIsTextured = false; |
| 135 | mStrength = 0.5f; |
| 136 | mTexTiles = 1.0f; |
| 137 | mSpeed1.set(0.5f, 0.0f); |
| 138 | mSpeed2.set(0.1f, 0.1f); |
| 139 | |
| 140 | INIT_ASSET(Shape); |
| 141 | INIT_ASSET(Texture); |
| 142 | } |
| 143 | |
| 144 | VolumetricFog::~VolumetricFog() |
| 145 | { |
nothing calls this directly
no test coverage detected