engineRemovePostProcess
Client
Turns off a post process this resource turned on with engineAddPostProcess.
bool engineRemovePostProcess(material material)
Parameters
| Name | Type | Description |
|---|---|---|
| material | material | The material that was turned on. |
Returns
true if this resource had it on, false if not.
Example
local vignette = engineCreateMaterial(engineCreateShader("shaders/vignette.shader"))
engineAddPostProcess(vignette)
addCommandHandler("vignette", function()
engineRemovePostProcess(vignette)
end)