Bugfix when GLSL disabled
This commit is contained in:
parent
fc228c96c4
commit
aa1418050d
@ -694,12 +694,17 @@ void Material::setMaterialProperties(video::SMaterial *m, scene::IMeshBuffer* m
|
|||||||
|
|
||||||
if (m_shader_type == SHADERTYPE_SOLID_UNLIT)
|
if (m_shader_type == SHADERTYPE_SOLID_UNLIT)
|
||||||
{
|
{
|
||||||
m->MaterialType = irr_driver->getShader(ES_OBJECT_UNLIT);
|
if (irr_driver->isGLSL())
|
||||||
|
{
|
||||||
m->AmbientColor = video::SColor(255, 255, 255, 255);
|
m->MaterialType = irr_driver->getShader(ES_OBJECT_UNLIT);
|
||||||
m->DiffuseColor = video::SColor(255, 255, 255, 255);
|
}
|
||||||
m->EmissiveColor = video::SColor(255, 255, 255, 255);
|
else
|
||||||
m->SpecularColor = video::SColor(255, 255, 255, 255);
|
{
|
||||||
|
m->AmbientColor = video::SColor(255, 255, 255, 255);
|
||||||
|
m->DiffuseColor = video::SColor(255, 255, 255, 255);
|
||||||
|
m->EmissiveColor = video::SColor(255, 255, 255, 255);
|
||||||
|
m->SpecularColor = video::SColor(255, 255, 255, 255);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (m_shader_type == SHADERTYPE_ALPHA_TEST)
|
if (m_shader_type == SHADERTYPE_ALPHA_TEST)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user