| 1083 | } |
| 1084 | |
| 1085 | void DecalRoad::_debugRender( ObjectRenderInst *ri, SceneRenderState *state, BaseMatInstance* ) |
| 1086 | { |
| 1087 | //if ( mStateBlock.isNull() ) |
| 1088 | // return; |
| 1089 | |
| 1090 | GFX->enterDebugEvent( ColorI( 255, 0, 0 ), "DecalRoad_debugRender" ); |
| 1091 | GFXTransformSaver saver; |
| 1092 | |
| 1093 | //GFX->setStateBlock( mStateBlock ); |
| 1094 | |
| 1095 | Point3F size(1,1,1); |
| 1096 | ColorI color( 255, 0, 0, 255 ); |
| 1097 | |
| 1098 | GFXStateBlockDesc desc; |
| 1099 | desc.setZReadWrite( true, false ); |
| 1100 | desc.setBlend( true ); |
| 1101 | desc.fillMode = GFXFillWireframe; |
| 1102 | |
| 1103 | if ( smShowBatches ) |
| 1104 | { |
| 1105 | for ( U32 i = 0; i < mBatches.size(); i++ ) |
| 1106 | { |
| 1107 | const Box3F &box = mBatches[i].bounds; |
| 1108 | GFX->getDrawUtil()->drawCube( desc, box, ColorI(255,100,100,255) ); |
| 1109 | } |
| 1110 | } |
| 1111 | |
| 1112 | //GFX->leaveDebugEvent(); |
| 1113 | } |
| 1114 | |
| 1115 | void DecalRoad::_generateEdges() |
| 1116 | { |
nothing calls this directly
no test coverage detected