Garry's Mod Wiki

render.CopyTexture

  render.CopyTexture( ITexture texture_from, ITexture texture_to )

Description

Copies the contents of one texture to another. Only works with rendertargets.

This does not copy the Depth buffer, no method for that is known at this moment so a common workaround is to store the source texture somewhere else, perform your drawing operations, save the result somewhere else and reapply the source texture.

Arguments

1 ITexture texture_from
2 ITexture texture_to