| 882 | } |
| 883 | |
| 884 | void MeshRoad::_initMaterial() |
| 885 | { |
| 886 | for ( U32 i = 0; i < SurfaceCount; i++ ) |
| 887 | { |
| 888 | if ( mMatInst[i] ) |
| 889 | SAFE_DELETE( mMatInst[i] ); |
| 890 | |
| 891 | if ( mMaterial[i] ) |
| 892 | mMatInst[i] = mMaterial[i]->createMatInstance(); |
| 893 | else |
| 894 | mMatInst[i] = MATMGR->createMatInstance( "WarningMaterial" ); |
| 895 | |
| 896 | mMatInst[i]->init( MATMGR->getDefaultFeatures(), getGFXVertexFormat<GFXVertexPNTT>() ); |
| 897 | } |
| 898 | } |
| 899 | |
| 900 | void MeshRoad::_debugRender( ObjectRenderInst *ri, SceneRenderState *state, BaseMatInstance* ) |
| 901 | { |
nothing calls this directly
no test coverage detected