Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice

Question Custom Decal Shader Works on iOS and PC but not on android

Discussion in 'Shader Graph' started by Skokon, Mar 7, 2023.

  1. Skokon

    Skokon

    Joined:
    Jul 23, 2017
    Posts:
    74
    Hello

    I have a shadergraph custom decal shader, it works on iOS and PC but it doesn't work on android

    I've included the shader in attachments
     

    Attached Files:

  2. DevDunk

    DevDunk

    Joined:
    Feb 13, 2020
    Posts:
    4,455
    Which unity version?
     
  3. jop_steel

    jop_steel

    Joined:
    Mar 12, 2017
    Posts:
    2
    Me too. I see decals on editor, I am able to export to *.apk, but decals are not shown on Android device. Tested on 2022.2.6 and 2022.2.13f1. I have tried different options of stripping in Project Settings/Graphics/URP Global Settings without success
     
  4. wwWwwwW1

    wwWwwwW1

    Joined:
    Oct 31, 2021
    Posts:
    637
    Is the graphics API set to OpenGL ES on android? You can try switching to Vulkan.

    Or you can try setting the decal mode to screen space and I think it should work with OpenGL ES devices.
     
  5. kristianmillirons_unity

    kristianmillirons_unity

    Joined:
    Apr 28, 2022
    Posts:
    2
    Similar issue here. My URP decal shader works perfectly fine on Android in 2022.2.11f1. After upgrading to 2022.2.15f1 with absolutely no other changes, all my decals show up as pink boxes now on Android.