float GetShapeInfluenceDensity( Shape shape ) { if( shape.SpecialLiquidDensity != 0 ) return shape.SpecialLiquidDensity; return shape.Density; }