Garry's Mod Wiki

render.GetScreenEffectTexture

  ITexture render.GetScreenEffectTexture( number textureIndex = 0 )

Description

Obtain an ITexture of the screen. You must call render.UpdateScreenEffectTexture in order to update this texture with the currently rendered scene.

This texture is mainly used within GM:RenderScreenspaceEffects

Arguments

1 number textureIndex = 0
Max index is 3, but engine only creates the first two for you.

Returns

1 ITexture
The requested texture.

Example

Print the texture name of the returned textures.

Output:
_rt_fullframefb _rt_fullframefb1