Revision Difference
render.CopyRenderTargetToTexture#512993
<function name="CopyRenderTargetToTexture" parent="render" type="libraryfunc">⤶
<description>Copies the currently active Render Target to the specified texture.</description>⤶
<realm>Client</realm>⤶
<args>⤶
<arg name="Target" type="ITexture">The texture to copy to</arg>⤶
</args>⤶
</function>⤶
⤶
<example>⤶
<description>This is how it's used in <page>render.CopyTexture</page></description>⤶
<code>⤶
function render.CopyTexture( from, to )⤶
⤶
local OldRT = render.GetRenderTarget()⤶
⤶
render.SetRenderTarget( from )⤶
render.CopyRenderTargetToTexture( to )⤶
⤶
render.SetRenderTarget( OldRT )⤶
⤶
end⤶
</code>⤶
⤶
</example>