Search Unity

Screen Overlay for Post Processing Stack

Discussion in 'Image Effects' started by Guideborn, Oct 6, 2019.

  1. Guideborn

    Guideborn

    Joined:
    Jun 15, 2013
    Posts:
    231
  2. Olmi

    Olmi

    Joined:
    Nov 29, 2012
    Posts:
    1,553
    You could pretty easily write a custom post processing effect that does this; get the template from the tutorial "Writing Custom Effects":
    https://docs.unity3d.com/Packages/com.unity.postprocessing@2.1/manual/Writing-Custom-Effects.html

    Then you already have the current frame in the shader, all you need to do is to add another texture there and blend it somehow over the current frame. Instead of just using additive blending by summing up the values from two images, you could try implement some image processing app style blending mode. You can find many examples out there. Wikipedia is good starting point (https://en.wikipedia.org/wiki/Blend_modes).

    You can check the PPS source codes for examples on how to implement the texture parameters and things you need.