Fix displace fallback in non-advanced pipeline
This commit is contained in:
parent
7b571de395
commit
ea58a736d5
@ -84,8 +84,10 @@ TransparentMaterial getTransparentMaterialFromType(video::E_MATERIAL_TYPE type,
|
|||||||
{
|
{
|
||||||
if (CVS->isDefferedEnabled())
|
if (CVS->isDefferedEnabled())
|
||||||
return TM_DISPLACEMENT;
|
return TM_DISPLACEMENT;
|
||||||
else
|
else if (tp == video::EVT_2TCOORDS)
|
||||||
return TM_TRANSLUCENT_2TC;
|
return TM_TRANSLUCENT_2TC;
|
||||||
|
else
|
||||||
|
return TM_TRANSLUCENT_STD;
|
||||||
}
|
}
|
||||||
if (material->getShaderType() == Material::SHADERTYPE_ADDITIVE)
|
if (material->getShaderType() == Material::SHADERTYPE_ADDITIVE)
|
||||||
return TM_ADDITIVE;
|
return TM_ADDITIVE;
|
||||||
|
Loading…
Reference in New Issue
Block a user