GetRenderTarget

From Garry's Mod
Jump to: navigation, search
 GetRenderTarget( )

Contents

Description

Creates or gets the rendertarget with the given name.

See GetRenderTargetEx for an advanced version of this function with more options.

BUG

This crashes when used on a cubemap texture.

Issue Tracker: #2885

Arguments

string name

The internal name of the render target.

Arguments

number width

The width of the render target, must be power of 2. If not set to PO2, the size will be automatically converted to the nearest PO2 size.

Arguments

number height

The height of the render target, must be power of 2. If not set to PO2, the size will be automatically converted to the nearest PO2 size.

Arguments

boolean additive=false

Sets whenever the rt should be additive.

Returns

ITexture

The render target
Personal tools
Navigation