Search Unity

clip() causes pink sprites on the android devices with OpenGL ES 2.0

Discussion in 'Shaders' started by madTeddy, Jul 16, 2020.

  1. madTeddy

    madTeddy

    Joined:
    Feb 1, 2016
    Posts:
    7
    I need to use in my shader clip() function for alpha clipping. But on the android devices with OpenGL ES 2.0 it causes pink sprites. There is workaround for it? Except of excluding clip() from OpenGL ES 2.0.
     
  2. aleksandrk

    aleksandrk

    Unity Technologies

    Joined:
    Jul 3, 2017
    Posts:
    3,028
    Can you take a look in the logcat on the device? There should be some errors in the log.
     
  3. madTeddy

    madTeddy

    Joined:
    Feb 1, 2016
    Posts:
    7
    Here is it, I guess:
     
  4. aleksandrk

    aleksandrk

    Unity Technologies

    Joined:
    Jul 3, 2017
    Posts:
    3,028
    Yes, looks like it.
    Can you submit a bug report?
    `&` should not be part of the GLES2 output.
     
  5. madTeddy

    madTeddy

    Joined:
    Feb 1, 2016
    Posts:
    7
    Report submitted.
     
    aleksandrk likes this.