Garry's Mod Wiki

Revision Difference

render.SetRenderTargetEx#565554

<function name="SetRenderTargetEx" parent="render" type="libraryfunc"> <description> Sets the render target with the specified index to the specified rt. <validate>If you try to render with MSAA and set the main RenderTarget with another RenderTarget, nothing will be rendered.</validate>⤶ <warning>⤶ If you try to render with MSAA and set the main RenderTarget with another RenderTarget, nothing will be rendered.⤶ ⤶ [Link to Direct3D 9 documentation on MRT](https://learn.microsoft.com/en-us/windows/win32/direct3d9/multiple-render-targets#:~:text=No%20antialiasing%20is%20supported)⤶ ⤶ `Multiple render targets have the following restrictions:`⤶ * *No antialiasing is supported.*⤶ </warning>⤶ </description> <realm>Client</realm> <args> <arg name="rtIndex" type="number">The index of the rt to set.</arg> <arg name="texture" type="ITexture">The new render target to be used.</arg> </args> </function>