render.GetScreenEffectTexture

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

Contents

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

number textureIndex=0

Max index is 3, but engine only creates the first two for you.

Returns

Examples

Example

Print the texture name of the returned textures.

print(render.GetScreenEffectTexture(0):GetName())
print(render.GetScreenEffectTexture(1):GetName())

Output:

_rt_fullframefb
_rt_fullframefb1
Personal tools
Navigation