Search Unity

  1. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Question DOF is very dark in WebGL (Post processing stack v2)

Discussion in 'Web' started by Rackover, Dec 21, 2020.

  1. Rackover

    Rackover

    Joined:
    Apr 25, 2020
    Posts:
    9
    Hello!
    I'm having an issue where the post processing stack's Depth of Field makes the scene significantly darker in the blurred areas, but only out of play mode and/or in WebGL builds!

    Here's a comparison:

    EDITOR (INGAME) This is how I want the build to look like
    upload_2020-12-21_12-38-20.png

    EDITOR (Not ingame)


    WEBGL BUILD
    upload_2020-12-21_12-38-3.png

    This is a problem as a lot of the game is blurred in the distance, and therefore is unnecessarily dark in the WebGL build. I would like to obtain in the build the same render as in the editor ingame, which is a blurry render without making everything black.

    I feel like some people already have encountered the exact same problem here https://www.reddit.com/r/Unity3D/comments/bdpyld/depth_of_field_makes_camera_view_extremely_dark/ and here https://answers.unity.com/questions/1400624/post-processing-depth-of-field-issue-on-android-we.html but no solutions appear to have been found so far.