Search code examples
unity-game-engineshaderpost-processing

How do I create horror-like glitchy horizontal motion blur effect on object?


I am not sure what the effect is called and I do not seem to find anyway to find out either. You can check out the effect here in a game called Layers of Fear:

I know it's done by using shaders but can anyone link me to a guide to achieve it or the effect's name? Would love to add something like that in my game! Thanks in advance!


Solution

  • You can do most of these with Unity Effects. All of the effects used are only available for Pro users only. You need a license to be able to use those or you will have to write them by yourself.

    You can write your own Image Effects with OnRenderImage but that will be complicated.

    You have to do everything below as a timer, in coroutine with Time.deltaTime instead of yield return new WaitForSeconds().

    FIRST VIDEO EFFECTS:

    Tilt Shift Effect

    Twirl Effect

    Blur (Optimized)Effect

    Edge Detect Effect Normals Effect

    Color Correction Ramp Texture Effect Modify the RGB Ramp Offset from code.

    Repeatedly Change the opaque/transparency of the character/3D Model from 0-1, through code.

    SECOND VIDEO EFFECTS:

    Grayscale Effect

    Twirl Effect

    Use code to change Radius,Angle and Center properties of the Twirl Effect.

    THIRD VIDEO EFFECTS:

    Turn lights on/off repeatedly

    Color Correction Curves Effect Apply this while turning the light on/off.

    When going down the elevator, apply Motion Blur Effect while modifying its Blur Amount and Extra Blur properties.