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

Example

Print the texture name of the returned textures.

print(render.GetScreenEffectTexture(0):GetName()) print(render.GetScreenEffectTexture(1):GetName())
Output: _rt_fullframefb<br> _rt_fullframefb1

Page Links


Special Pages


Wikis

?

Render Time: 22ms

Session 0
DB GetPage 3
Generate Html 1
SaveChanges 8
Render Body 0
Render Sidebar 7