Note that you should use something like
to create the texture to render to.
I tried to use
and the game just crashed.
Texture texture = Texture.CreateRenderTarget().WithSize( 1920, 1080 ).Create(); to create the texture to render to.
I tried to use
Texture texture = Texture.Create(1920, 1080, ImageFormat.RGBA8888).Finish();
camera.RenderToTexture( texture ) and the game just crashed.