| 77 | |
| 78 | |
| 79 | RenderPrePassMgr::RenderPrePassMgr( bool gatherDepth, |
| 80 | GFXFormat format ) |
| 81 | : Parent( RIT_PrePass, |
| 82 | 0.01f, |
| 83 | 0.01f, |
| 84 | format, |
| 85 | Point2I( Parent::DefaultTargetSize, Parent::DefaultTargetSize), |
| 86 | gatherDepth ? Parent::DefaultTargetChainLength : 0 ), |
| 87 | mPrePassMatInstance( NULL ) |
| 88 | { |
| 89 | notifyType( RenderPassManager::RIT_Decal ); |
| 90 | notifyType( RenderPassManager::RIT_DecalRoad ); |
| 91 | notifyType( RenderPassManager::RIT_Mesh ); |
| 92 | notifyType( RenderPassManager::RIT_Terrain ); |
| 93 | notifyType( RenderPassManager::RIT_Object ); |
| 94 | |
| 95 | // We want a full-resolution buffer |
| 96 | mTargetSizeType = RenderTexTargetBinManager::WindowSize; |
| 97 | |
| 98 | if(getTargetChainLength() > 0) |
| 99 | GFXShader::addGlobalMacro( "TORQUE_LINEAR_DEPTH" ); |
| 100 | |
| 101 | mNamedTarget.registerWithName( BufferName ); |
| 102 | mColorTarget.registerWithName( ColorBufferName ); |
| 103 | mMatInfoTarget.registerWithName( MatInfoBufferName ); |
| 104 | |
| 105 | mClearGBufferShader = NULL; |
| 106 | |
| 107 | _registerFeatures(); |
| 108 | } |
| 109 | |
| 110 | RenderPrePassMgr::~RenderPrePassMgr() |
| 111 | { |
nothing calls this directly
no test coverage detected