Create a kart shadow only of shadow texture exists.
If the image doesn't exist, in some cases it can draw non-transparent square below the kart, which is unwanted.
This commit is contained in:
parent
02d3bd2c2b
commit
2ef6652183
@ -2557,7 +2557,8 @@ void Kart::loadData(RaceManager::KartType type, bool is_animated_model)
|
||||
->isFogEnabled() );
|
||||
}
|
||||
#ifndef SERVER_ONLY
|
||||
if (!CVS->supportsShadows())
|
||||
if (!CVS->supportsShadows() &&
|
||||
m_kart_properties->getShadowTexture() != NULL)
|
||||
{
|
||||
m_shadow = new Shadow(m_kart_properties.get(), m_node,
|
||||
-m_kart_model->getLowestPoint());
|
||||
|
Loading…
Reference in New Issue
Block a user