Search Unity

  1. We are migrating the Unity Forums to Unity Discussions. On July 12, the Unity Forums will become read-only. On July 15, Unity Discussions will become read-only until July 18, when the new design and the migrated forum contents will go live. Read our full announcement for more information and let us know if you have any questions.

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.