Skip to content

Format

typescript
Graphics.BlitWithMaterial(source, dest, material)

class: Graphics

Description

Copy the content of a render texture to another render texture, while optionally performing some image processing operations.

This method is commonly used to implement post-processing effects, image filters, and other operations.

Parameters

param_nametypedescription
sourceTextureThe source texture.
destRenderTextureThe destination texture.
materialMaterialSpecifies the shader and other rendering parameters to use.

Return

typedescription
void

Code Example