Garry's Mod Wiki

Garry's Mod Wiki

  render.CapturePixels()

Description

This is a rendering function that requires a 2d rendering context.

This means that it will only work in 2d Rendering Hooks.

Dumps the current render target and allows the pixels to be accessed by render.ReadPixel.

Capturing outside a render hook will return 0 0 0 255

This site is a community mirror of the official Garry's Mod wiki.. This site is not maintained by Facepunch Studios.

Page content is automatically updated twice a day. Edits and history are not available.

Last Parsed: Loading...