-------------------------------------------------------------------------------- Description: What shader to use for the shield? --------------------------------------------------------------------------------
| 1413 | // What shader to use for the shield? |
| 1414 | // -------------------------------------------------------------------------------- |
| 1415 | const char* EveSOFDNA::GetImpactShieldShader() const |
| 1416 | { |
| 1417 | const EveSOFDataMgr::GenericDamageData* data = GetGenericDamageData(); |
| 1418 | if( data ) |
| 1419 | { |
| 1420 | switch( m_hullDatas[0]->impactEffectType ) |
| 1421 | { |
| 1422 | case EveSOFDataHull::IMPACTEFFECT_NONE: |
| 1423 | return nullptr; |
| 1424 | case EveSOFDataHull::IMPACTEFFECT_ELLIPSOID: |
| 1425 | return data->shieldShaderEllipsoid.c_str(); |
| 1426 | case EveSOFDataHull::IMPACTEFFECT_HULL: |
| 1427 | return data->shieldShaderHull.c_str(); |
| 1428 | } |
| 1429 | } |
| 1430 | return nullptr; |
| 1431 | } |
| 1432 | |
| 1433 | // -------------------------------------------------------------------------------- |
| 1434 | // Description: |