Search Unity

  1. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

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.