Minor correction for a window path
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@14906 178a84e3-b1eb-0310-8ba1-8eac791a3b58
This commit is contained in:
@@ -217,6 +217,11 @@ Material::Material(const XMLNode *node, int index, bool deprecated)
|
||||
{
|
||||
m_graphical_effect = GE_SPHERE_MAP;
|
||||
}
|
||||
else if (s == "skybox")
|
||||
{
|
||||
printf("[sam] Coucou\n");
|
||||
m_graphical_effect = GE_SKYBOX;
|
||||
}
|
||||
else if (s == "splatting")
|
||||
{
|
||||
m_graphical_effect = GE_SPLATTING;
|
||||
@@ -801,6 +806,19 @@ void Material::setMaterialProperties(video::SMaterial *m, scene::IMeshBuffer* m
|
||||
m->SpecularColor.set(0,0,0,0);
|
||||
modes++;
|
||||
}
|
||||
|
||||
if(m_graphical_effect == GE_SKYBOX && irr_driver->isGLSL())
|
||||
{
|
||||
printf("[sam] Hello world :)\n");
|
||||
ITexture* tex = irr_driver->getTexture("cloud_mask.png");
|
||||
m->setTexture(1, tex);
|
||||
if(m->getTexture(1) == NULL)
|
||||
{
|
||||
printf("[sam] Error :( \n");
|
||||
}
|
||||
|
||||
m->MaterialType = irr_driver->getShader(ES_SKYBOX);
|
||||
}
|
||||
if (m_graphical_effect == GE_SPLATTING)
|
||||
{
|
||||
if (irr_driver->supportsSplatting())
|
||||
|
||||
Reference in New Issue
Block a user