Garry's Mod Wiki

Revision Difference

render.CapturePixels#552479

<function name="CapturePixels" parent="render" type="libraryfunc"> <description>Dumps the current render target and allows the pixels to be accessed by <page>render.ReadPixel</page>.</description>⤶ <description><rendercontext hook="false" type="2D"></rendercontext>⤶ Dumps the current render target and allows the pixels to be accessed by <page>render.ReadPixel</page>. ⤶ ⤶ Capturing outside a render hook will return 0 0 0 255⤶ </description>⤶ <realm>Client</realm> </function>