Search Unity

  1. The 2022.1 beta is now available for testing. To find out what's new, have a look at our 2022.1 beta blog post.
    Dismiss Notice

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:
    5
    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:
    5
    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
    Torbach78 likes this.
unityunity