Garry's Mod Wiki

Revision Difference

Global.GetRenderTarget#514930

<function name="GetRenderTarget" parent="Global" type="libraryfunc">⤶ <description>⤶ Creates or gets the rendertarget with the given name.⤶ ⤶ See <page>Global.GetRenderTargetEx</page> for an advanced version of this function with more options.⤶ ⤶ <bug issue="2885">This crashes when used on a cubemap texture.</bug>⤶ </description>⤶ <realm>Client</realm>⤶ <args>⤶ <arg name="name" type="string">The internal name of the render target.</arg>⤶ <arg name="width" type="number">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.</arg>⤶ <arg name="height" type="number">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.</arg>⤶ <arg name="additive" type="boolean" default="false">Sets whenever the rt should be additive.</arg>⤶ </args>⤶ <rets>⤶ <ret name="" type="ITexture">The render target</ret>⤶ </rets>⤶ </function>⤶ ⤶