Search Unity

  1. Unity Asset Manager is now available in public beta. Try it out now and join the conversation here in the forums.
    Dismiss Notice

Light problem in transition from 20b to 21b Unity 5

Discussion in 'Unity 5 Pre-order Beta' started by KEric, Feb 17, 2015.

  1. KEric

    KEric

    Joined:
    Jan 11, 2013
    Posts:
    62
    Can anyone tell me what happened with lighting computation starting from Unity 5 21b?
    It looks like lighting values (ambient/directional) are more intense. I'm attaching two screenshots made in Unity editor using version 20b and 1f (the problem exists from 21b though).
    As for shaders I'm using custom ones that I've written myself. Within them I'm using such values as:

    -- Vertex Shader:

    Shade4PointLights(unity_4LightPosX0, unity_4LightPosY0, unity_4LightPosZ0,
    unity_LightColor0, unity_LightColor1, unity_LightColor2, unity_LightColor3,
    unity_4LightAtten0, worldPos, worldN);

    ...

    _LightColor0.rgb

    -- Fragment Shader:

    UNITY_LIGHTMODEL_AMBIENT
     

    Attached Files:

    • b20.png
      b20.png
      File size:
      6.4 KB
      Views:
      877
    • f1.png
      f1.png
      File size:
      2.9 KB
      Views:
      871
  2. AcidArrow

    AcidArrow

    Joined:
    May 20, 2010
    Posts:
    11,723
    Are you sure it is beta 21 and not 22?

    Release notes from beta 22:

     
  3. KEric

    KEric

    Joined:
    Jan 11, 2013
    Posts:
    62
    I think that's it. Many thanks for the information!