| 1170 | } |
| 1171 | |
| 1172 | void 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 | |
| 1183 | void WaterObject::cleanupMaterials() |
| 1184 | { |
nothing calls this directly
no test coverage detected