Search Unity

Trigonometric CG shader functions bug

Discussion in 'Android' started by Olivier356, Aug 12, 2016.

  1. Olivier356

    Olivier356

    Joined:
    Sep 14, 2015
    Posts:
    12
    Hi there,
    Since Unity 5.4 i am experiencing bugs with the trigonometric function in cg shader like atan2 or acos.

    Here the results i got drawing a simple quad and using the following shader :
    On a desktop computer, everything is fine :


    On my mobile phone Moto-E 4G - 2nd Generation on Android i got this buggy thing :


    Is anybody experiencing the same issue ?
    Do i need a specific pragma or something in the shader ?