
Could you send me your modified irrlicht.lib file ?
Thanks
Code: Select all
HLSL pixel shader compilation failed:
(113): error X3500: asymetric returns from if statements not yet implemented
ShaderNumber=-1
Code: Select all
if(choice=='1')
{
//use the new terrain:
SimpleTerrain =
new SimpleHeightMap(smgr, smgr->getRootSceneNode(), 0, "heightmap32bit00-00.raw",core::vector3df(0,0,0),core::vector3df(0,0,0),
core::vector3df(800.0f,800.0f,800.0f));
//SimpleTerrain->setMaterialType((video::E_MATERIAL_TYPE)ShaderNumber);
//SetTextures(SimpleTerrain->getMaterial(0));
SimpleTerrain->setMaterialType(video::EMT_SOLID);
video::SMaterial material = SimpleTerrain->getMaterial(0);
material.TextureLayer[0].Texture = driver->getTexture("Map/sand.jpg");
material.Lighting = false;
material.EmissiveColor = video::SColor(255, 240,200,150);
material.SpecularColor = video::SColor(255, 223,231,100);
}