Support alpha-blended sphere mapping
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@10496 178a84e3-b1eb-0310-8ba1-8eac791a3b58
This commit is contained in:
parent
0cdbc69c80
commit
41ab5979fa
@ -660,7 +660,17 @@ void Material::setMaterialProperties(video::SMaterial *m)
|
|||||||
if (m_sphere_map)
|
if (m_sphere_map)
|
||||||
{
|
{
|
||||||
m->MaterialType = video::EMT_SPHERE_MAP;
|
m->MaterialType = video::EMT_SPHERE_MAP;
|
||||||
modes++;
|
|
||||||
|
// sphere map + alpha blending is a supported combination so in
|
||||||
|
// this case don't increase mode count
|
||||||
|
if (m_alpha_blending)
|
||||||
|
{
|
||||||
|
m->BlendOperation = video::EBO_ADD;
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
modes++;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
#if !LIGHTMAP_VISUALISATION
|
#if !LIGHTMAP_VISUALISATION
|
||||||
if (m_lightmap)
|
if (m_lightmap)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user