So the problem is - I'm trying to make shadow maps. And I got it working but there is one problem - it looks like shadow maps are lagging. Depth map rendering is lagging to be exact. The current scenario looks like this:
Code: Select all
render depth map by rendering each necessary node's render() method
render everything else by calling drawAll()
I tried to render each node manually but something doesn't work this way. I tried the next scenario:
Code: Select all
call camera's OnRegisterSceneNode(), then render()
In a loop: call each node's OnAnimate(), then OnRegisterSceneNode() then render()
How can I render depth map after everything is updated but before anything is rendered? Or do I just have to change irrlicht itself?