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

Method initTextures

Engine/source/environment/waterObject.cpp:1172–1181  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1170}
1171
1172void WaterObject::initTextures()
1173{
1174 if ( mNamedDepthGradTex.isRegistered() )
1175 mNamedDepthGradTex.setTexture( mDepthGradientTex );
1176
1177 if ( mCubemapName != StringTable->EmptyString() )
1178 Sim::findObject( mCubemapName, mCubemap );
1179 if ( mCubemap )
1180 mCubemap->createMap();
1181}
1182
1183void WaterObject::cleanupMaterials()
1184{

Callers

nothing calls this directly

Calls 5

EmptyStringMethod · 0.80
createMapMethod · 0.80
findObjectFunction · 0.50
isRegisteredMethod · 0.45
setTextureMethod · 0.45

Tested by

no test coverage detected