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

Method initializeAsset

Engine/source/T3D/assets/PostEffectAsset.cpp:134–142  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

132}
133
134void PostEffectAsset::initializeAsset()
135{
136 mScriptPath = getOwned() ? expandAssetFilePath(mScriptFile) : mScriptPath;
137 mHLSLShaderPath = getOwned() ? expandAssetFilePath(mHLSLShaderFile) : mHLSLShaderPath;
138 mGLSLShaderPath = getOwned() ? expandAssetFilePath(mGLSLShaderFile) : mGLSLShaderPath;
139
140 if (Torque::FS::IsScriptFile(mScriptPath))
141 Con::executeFile(mScriptPath, false, false);
142}
143
144void PostEffectAsset::onAssetRefresh()
145{

Callers

nothing calls this directly

Calls 2

IsScriptFileFunction · 0.85
executeFileFunction · 0.85

Tested by

no test coverage detected