Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice
  3. Join us on November 16th, 2023, between 1 pm and 9 pm CET for Ask the Experts Online on Discord and on Unity Discussions.
    Dismiss Notice

shader issue when upgrading project from Unity4 to 5

Discussion in 'Editor & General Support' started by Steven-1, Mar 3, 2016.

  1. Steven-1

    Steven-1

    Joined:
    Sep 11, 2010
    Posts:
    451
    I'm in the middle of upgrading a project from Unity4 to 5.
    I had skyboxes which used a tint color, in the shader it would multiply the skybox with this color.
    Now in Unity5 it seems it adds the color instead.
    I looked at the shader code, and all it does with the tint color is:
    Color [_Tint]
    (in the SubShader before the passes)

    So is this intentional behaviour, or is it a bug?
    I can't see why Unity would decide to make it work that way.
     
    Last edited: Mar 7, 2016
  2. Steven-1

    Steven-1

    Joined:
    Sep 11, 2010
    Posts:
    451
    anyone?
     
  3. SARWAN

    SARWAN

    Joined:
    Oct 23, 2012
    Posts:
    11
    i'm having the issues in Shader. When upgrading from Unity 4 to 5
    Shader error in 'Transparent/Cutout/Soft Edge Lit Double Sided': 'LightingLambert': cannot implicitly convert from 'min16float3' to 'struct UnityGI' at line 98 (on gles3)

    Compiling Vertex program with DIRECTIONAL LIGHTMAP_OFF DIRLIGHTMAP_OFF DYNAMICLIGHTMAP_OFF
    Platform defines: UNITY_NO_SCREENSPACE_SHADOWS UNITY_ENABLE_REFLECTION_BUFFERS UNITY_PBS_USE_BRDF1 UNITY_SPECCUBE_BOX_PROJECTION UNITY_SPECCUBE_BLENDING
     
  4. Steven-1

    Steven-1

    Joined:
    Sep 11, 2010
    Posts:
    451
    How is that realted to the problem I'm having?