render.CopyRenderTargetToTexture

From GMod Wiki

Jump to: navigation, search
Function
Syntax render.CopyRenderTargetToTexture( ITexture to )
Where is this used?
Description:
Copies the current render target to the texture specified.
Returns: nil
Part of Library: render
Realm: NewerClient.png
BBCode Link: [b][url=http://wiki.garrysmod.com/?title=Render.CopyRenderTargetToTexture]Render.CopyRenderTargetToTexture [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b]



Examples

DescriptionCopies the specified render target to the specified texture.
Used onNewerClient.png
Code
local OldRT = render.GetRenderTarget();
 
   render.SetRenderTarget( from )
   render.CopyRenderTargetToTexture( to )
 
   render.SetRenderTarget( OldRT ) 
OutputN/A


See Also

Personal tools
Namespaces
Variants
Actions
Navigation
Lua Scripting
Functions
Hooks
Toolbox