Home Forums Unity SDK Eye tracker 4C-Unexpected token usertype on viewDir in Surface shader of unity

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #8926
    Supriya Raul
    Participant

    Hello, I am using TobiiUnitySDKForDesktop_4.0.0 (for Tobii Eye Tracker 4C) with Unity 5.6.3f1 and I am able to get the screen coordinates of the gaze point. The thing I can not achieve is – “to make the object glow when the user gaze at it”. I am trying to make a surface shader and it’s giving me an error “Unexpected token usertype. Expected : identifier” on the float3 viewDir. Could you please help me identify what is going wrong with it?

    Thanks in advance.

    #8927
    Alex [Tobii]
    Participant

    Hi @supriya!

    You probably have an error in the shader you use.
    We have a sample glow/outline shader and sample code in Demo scenes/First person

    #8929
    Supriya Raul
    Participant

    Thank you for your quick response Alex.
    I could not find a shader with this name(glow or outline shader) in the package. Does it have some other name?

    Thanks

    #8931
    Alex [Tobii]
    Participant

    HighlightsPostEffect.cs
    Highlight.shader

Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.