I wanted to use Compositor framework to do runtime partial texture update.
It can be supported by adding few lines of code to the framework. To allow compositor renders to non local render texture.
e.g.
Code: Select all
compositor TexUploadTest
{
technique
{
target RTTTex
{...
}
}
}
And the next thing to add, is to allow user specifying the viewport region on the render target. The current code always create the viewport covering the whole render target.
If a viewport covering only part of the render target can be constructed, then partial texture update can be done.
e.g.
Code: Select all
target RTTTex
{
viewport_left 0
viewport_up 0
viewport_bottom 10
viewport_right 10
}