I´m currently trying to create shadows with XEffects, but I think I missed something as I can´t see any shadow. So here is what I do:
Code: Select all
effect = new EffectHandler(Device, Driver->getScreenSize(), true, true);
effect->setClearColour(SColor(255, 0, 0, 0));
effect->setAmbientColor(SColor(150, 200, 200, 200));
E_FILTER_TYPE filterType = E_FILTER_TYPE::EFT_8PCF;
effect->addShadowLight(SShadowLight(512, core::vector3df(0, 400, 0), core::vector3df(50, 0, 50), irr::video::SColor(150, 255, 255, 255), 200, 500));
effect->addShadowLight(SShadowLight(512, core::vector3df(1024, 200, 1024), core::vector3df(100, 0, 200), irr::video::SColor(100, 255, 255, 255), 200, 500, 90.0*irr::core::DEGTORAD64, true));
effect->addShadowToNode(terrain, filterType);
effect->addShadowToNode(model, filterType);
Code: Select all
effect->update();
Thanks,
badday