render.CopyRenderTargetToTexture

From Garry's Mod
Jump to: navigation, search
 render.CopyRenderTargetToTexture( )

Contents

Description

Copies the currently active Render Target to the specified texture.

Arguments

ITexture Target

The texture to copy to

Examples

Example

This is how it's used in render.CopyTexture

function render.CopyTexture( from, to )

	local OldRT = render.GetRenderTarget()

		render.SetRenderTarget( from )
		render.CopyRenderTargetToTexture( to )

	render.SetRenderTarget( OldRT )

end


Personal tools
Navigation