protected void OnRenderImage(RenderTexture sourceTexture, RenderTexture destTexture)
{
if (shader != null)
{
// Copy the source Render Texture to the destination,
// applying the material along the way.
Mat.SetFloat("_DepthPower", depthPower);
Graphics.Blit(sourceTexture, destTexture, Mat);
}
else
{
Graphics.Blit(sourceTexture, destTexture);
}
}