Garry's Mod Wiki

render.CopyRenderTargetToTexture

Description

Copies the currently active Render Target to the specified texture.

Arguments

1 ITexture Target
The texture to copy to

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

Page Links


Special Pages


Wikis

?

Render Time: 28ms

DB GetPage 4
Generate Html 3
SaveChanges (1) 11
Render Body 0
Render Sidebar 7