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.

inline fixed4 LightingMobileBlinnPhong (SurfaceOutput s, fixed3 lightDir, fixed3 half

Discussion in 'BlackBerry' started by Jonny-Roy, Nov 1, 2013.

  1. Jonny-Roy

    Jonny-Roy

    Joined:
    May 29, 2013
    Posts:
    666
    For blackberry the following shader:

    inline fixed4 LightingMobileBlinnPhong (SurfaceOutput s, fixed3 lightDir, fixed3 halfDir, fixed atten)

    halfDir is not populated....anyone know of a workaround?

    Thanks,

    Jon
     
  2. Jonny-Roy

    Jonny-Roy

    Joined:
    May 29, 2013
    Posts:
    666
    Okay, so the workaround:

    #pragma surface surf MobileBlinnPhong exclude_path:prepass nolightmap noforwardadd halfasview

    Change to:

    #pragma surface surf MobileBlinnPhong exclude_path:prepass nolightmap noforwardadd

    And halfDir will be populated.