MCPcopy Create free account
hub / github.com/carbonengine/trinity / GetImpactShieldShader

Method GetImpactShieldShader

trinity/Eve/SpaceObjectFactory/EveSOFDNA.cpp:1415–1431  ·  view source on GitHub ↗

-------------------------------------------------------------------------------- Description: What shader to use for the shield? --------------------------------------------------------------------------------

Source from the content-addressed store, hash-verified

1413// What shader to use for the shield?
1414// --------------------------------------------------------------------------------
1415const 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:

Callers 1

SetupImpactEffectsMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected