Search Unity

Bug Reflection intensity is different between standalone and editor

Discussion in 'General Graphics' started by joska, Nov 1, 2021.

  1. joska

    joska

    Joined:
    Feb 1, 2015
    Posts:
    9
    Since a couple weeks i have been running into an issue. My standalone builds look different than my editor, everything was somewhat darker like the reflection strength was halved. after a whole day of trying to find it out i sadly got no where tried changing every option in graphics, quality, lighting settings and reflection probe but no luck. does anyone know how to fix this issue?

    to make it clearer to see what the problem is i made the screenshot have a reflection probe 4 times as strong as usual to see the issue more obvious. by changing the editor reflection to be half that of the standalone build i managed to get the same results. I am running unity 2021.2.0f1 URP.

    ReflectionStrenghtIssue.png
     
  2. joska

    joska

    Joined:
    Feb 1, 2015
    Posts:
    9
    After a lot more testing and frustration. i found that the exposure strength of the skybox is getting set wrong in the standalone version and not just the reflection strenght. I made a temp solution for other who might be running into the same issue.
    I hope unity can fix this problem properly soon.

    Code (CSharp):
    1.  
    2.     public Material Skybox;
    3.  
    4.     void Awake()
    5.     {
    6.         if (Application.isEditor)
    7.         {
    8.             Skybox.SetFloat("_Exposure" , 1);
    9.             DynamicGI.UpdateEnvironment();
    10.         }
    11.         else
    12.         {
    13.             Skybox.SetFloat("_Exposure" , 2);
    14.             DynamicGI.UpdateEnvironment();
    15.         }
    16.     }
     
    Last edited: Nov 3, 2021
    Claytonious and Torbach78 like this.
  3. joska

    joska

    Joined:
    Feb 1, 2015
    Posts:
    9
    Bump issues still there. noticed it has to do something with the URP stripping when having another issue.
     
  4. Claytonious

    Claytonious

    Joined:
    Feb 16, 2009
    Posts:
    904
    Did you submit a bug report for this?
     
  5. joska

    joska

    Joined:
    Feb 1, 2015
    Posts:
    9
  6. Claytonious

    Claytonious

    Joined:
    Feb 16, 2009
    Posts:
    904
    Great. Did QA reply to you about it?
     
  7. joska

    joska

    Joined:
    Feb 1, 2015
    Posts:
    9
    sadly no
     
  8. vertexx

    vertexx

    Joined:
    Mar 18, 2014
    Posts:
    379
    Global Illumination: Scene gets brighter in Standalone player if it was open in the Editor at build time. (1375015)
    Maybe your issue might be suffering from this??
    But that and many other things are mentioned in "Whats new".
    PS. Using both Using 2021.2 and URP? Very brave of you :)