MCPcopy Create free account
hub / github.com/TorqueGameEngines/Torque3D / VolumetricFog

Method VolumetricFog

Engine/source/environment/VolumetricFog.cpp:92–142  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

90
91
92VolumetricFog::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
144VolumetricFog::~VolumetricFog()
145{

Callers

nothing calls this directly

Calls 4

IsInitializedMethod · 0.45
InitMethod · 0.45
setMethod · 0.45
clearMethod · 0.45

Tested by

no test coverage detected