I wanted to do some stupid experiment with FX shaders made with FX Composer 2.5 and Irrlicht.
I succeded (through ID3DXEffect) to render some FX shaders with only a little bit of hack.
It is only a stupid example but it works without the need to modify Irrlicht source code:
Code: Select all
... create shader and choose technique...
m_VideoDriver->beginScene(true,true,SColor(255,255,255,0));
... update fx shader parameters ...
FXEffect->Begin(&numPasses,0);
FXEffect->BeginPass(0);
m_SceneManager->drawAll();
FXEffect->EndPass();
FXEffect->End();
m_VideoDriver->getDriver().endScene();
There's some way to get that pointer without modify Irrlicht source code?
Thanks