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. Dismiss Notice

Resolved Transparency artifacts on iOS & Mac

Discussion in 'General Graphics' started by compyler, Jul 30, 2023.

  1. compyler

    compyler

    Joined:
    Mar 30, 2020
    Posts:
    94
    Hello,

    in my game I have made a "light rays" effects with a quad that uses a material with "Mobile/Particles/Additive" shader and a .png texture with transparency (made via gradient tool in GIMP).

    On my PC everything looks fine, but on iOS and on my Mac I have weird stripe patterns:

    This screenshot was taken from my Mac. The texture preview in the bottom right also shows weird artifacts (stripe pattern). On PC the texture looks fine:


    Here are the texture settings:


    Has anyone an idea what could cause these transparency artifacts? Do I have to create the .png in a different way for iOS/Mac? Or is this a material problem?

    Thanks for any help!
     
  2. DevDunk

    DevDunk

    Joined:
    Feb 13, 2020
    Posts:
    4,362
    1. Try the default texture type instead of sprite or 2D
    2. Enable mip maps if the game is 3D
    3. Play around with filter mode and compression settings
     
  3. compyler

    compyler

    Joined:
    Mar 30, 2020
    Posts:
    94
    Point 3 fixed it! In case anyone else runs into this problem: Setting compression to None removed the artifacts.

    Thank you very much DevDunk!
     
  4. valentin56610

    valentin56610

    Joined:
    Jan 22, 2019
    Posts:
    146
    I think you should change the thread's flair to 'Solved' :)
     
  5. compyler

    compyler

    Joined:
    Mar 30, 2020
    Posts:
    94
    I can do that, yes. Unfortunately I don't know HOW to do it^^
    I found "Thread tools" at the very top to change "Question", but there was no "Solved" option. How can I set it to "Solved"?
     
  6. valentin56610

    valentin56610

    Joined:
    Jan 22, 2019
    Posts:
    146
    You must find the 'change thread title' or 'edit thread title', it should be at the top of the UI near your thread's title
    From there, just click on the flair, and pick something else ;)
     
  7. compyler

    compyler

    Joined:
    Mar 30, 2020
    Posts:
    94
    Got it!