|
|
@ -274,6 +274,7 @@ void CBloomEffect::applyBloom()
|
|
|
|
|
|
|
|
|
|
|
|
// apply blur with a blend operation
|
|
|
|
// apply blur with a blend operation
|
|
|
|
drv->setRenderTarget(renderTarget);
|
|
|
|
drv->setRenderTarget(renderTarget);
|
|
|
|
|
|
|
|
_Driver->setMatrixMode2D11();
|
|
|
|
applyBlur();
|
|
|
|
applyBlur();
|
|
|
|
|
|
|
|
|
|
|
|
// cleanup material texture references
|
|
|
|
// cleanup material texture references
|
|
|
@ -356,6 +357,7 @@ void CBloomEffect::doBlur(bool horizontalBlur)
|
|
|
|
nlwarning("setRenderTarget return false with blur texture for bloom effect\n");
|
|
|
|
nlwarning("setRenderTarget return false with blur texture for bloom effect\n");
|
|
|
|
return;
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
_Driver->setMatrixMode2D11();
|
|
|
|
|
|
|
|
|
|
|
|
// initialize vertex program
|
|
|
|
// initialize vertex program
|
|
|
|
drvInternal->activeVertexProgram(TextureOffsetVertexProgram);
|
|
|
|
drvInternal->activeVertexProgram(TextureOffsetVertexProgram);
|
|
|
|