# engineGetPostImage (Client)

> Gives the image a post process step produces, to draw it or use it in another material.

- **Platform**: MY Multiplayer (MYMP)
- **Kind**: Lua Function
- **Side**: Client
- **Category**: Materials and shaders
- **URL**: https://wiki.mymp.gg/en/engineGetPostImage

## Syntax

```lua
texture|false engineGetPostImage(material|string material, string step)
```

## Parameters

| Name | Type | Description |
| --- | --- | --- |
| `material` | `material\|string` | The material or a material's name. |
| `step` | `string` | The step's name (`step`) in the shader. |

## Returns

A `texture` element with the step's image, the same one for the same material and step. `false` when the material's shader is not a post shader or has no such step; the warning lists the steps it has.

## Example

```lua
local bloom = engineCreateMaterial(engineCreateShader("shaders/bloom.shader"))
engineAddPostProcess(bloom)
local bright = engineGetPostImage(bloom, "bright")

addEventHandler("onClientRender", root, function()
    if bright then
        dxDrawImage(20, 20, 320, 180, bright)
    end
end)
```

### Note

A name that is not a material is an error.

## See also

- [engineAddPostProcess (Client)](https://wiki.mymp.gg/en/engineAddPostProcess.md): Turns on a post process on the screen: a material whose shader is #type post.
- [dxDrawImage (Client)](https://wiki.mymp.gg/en/dxDrawImage.md): Draws an image on the screen for one frame.
- [engineSetMaterialValue (Client)](https://wiki.mymp.gg/en/engineSetMaterialValue.md): Sets a material's value: a shader parameter, a static switch or the render target of a TARGET_n output.
