Rendering to an SMaterial
Rendering to an SMaterial
Is it possible to render an object to an SMaterial? No, I don't want to do any form of environment mapping. I have several 2D effects such as alpha masks, blurring etc. before I render it.
I have:
Yet it just crashes with the setRenderTarget in. It does this both if I render stuff after or not. Also, how would I set the render target back?
Code: Select all
if (driver->queryFeature(EVDF_RENDER_TO_TARGET))
{
ITexture *texTest;
driver->setRenderTarget(texTest);
printf("Driver does support this feature");
}else{
printf("Driver does not support this feature");
}