Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Shiny/Reflective Terrain Problem - URP Android (Unity 2020.3.31f1 LTS)

Discussion in 'Universal Render Pipeline' started by Haseeb_BSAA, Mar 21, 2022.

  1. Haseeb_BSAA

    Haseeb_BSAA

    Joined:
    Aug 20, 2014
    Posts:
    316
    This is such a frustrating problem. I have tried almost every solution I could find on the web to resolve it but to no avail. My terrain is shiny/reflective and I can't seem to get rid of it.

    Here's what I tried:
    1.Set the alpha source of texture to none.
    2.Set specular to black
    3.Tried creating new URP->Terrain->Lit material
    4.Tried different textures
    5.Tried adding normal map



    (Remember that this problem is not present in Desktop development, but the moment I switch platform to Android, the issue begins.)

    Any help is appreciated!
     
  2. Haseeb_BSAA

    Haseeb_BSAA

    Joined:
    Aug 20, 2014
    Posts:
    316
    Update :
    Turns out the problem was the texture itself. I took a screenshot of the texture and imported it, and it worked without any glossiness. Not sure what causes the original file (downloaded from ambientCG) to have that issue.
     
  3. creat327

    creat327

    Joined:
    Mar 19, 2009
    Posts:
    1,756
    Well, I'm having the same problem. My texture is fine. I tried reimporting as jpg and tiff and nothing, in android I get a spot like if it was specular on all my terrain.
     
  4. aboodhayder

    aboodhayder

    Joined:
    Jun 4, 2020
    Posts:
    1
    How do I solve this problem I have?
     
  5. creat327

    creat327

    Joined:
    Mar 19, 2009
    Posts:
    1,756
    you report it as a bug to unity, it only happens in android as far as i know
     
  6. BHLC

    BHLC

    Joined:
    Feb 23, 2021
    Posts:
    2
    Hey guys, I had the same problem and my way to fix was changing the texture format to "RGB Compressed ETC", I am not sure if was the Alpha or the ASTC format that was causing it, but it worked changing it for me.
     

    Attached Files:

    cmdexecutor and hasadhin3 like this.
  7. creat327

    creat327

    Joined:
    Mar 19, 2009
    Posts:
    1,756
    It is a known bug and worked on already. It's a bug in the shader that treats alpha as shininess. If you change it to RGB or whatever removes the alpha, the bug is gone but you lose the advantage of ASTC compression in mobile.
     
  8. Deleted User

    Deleted User

    Guest

    Hey guys, changing the texture format to "RGB Compressed ETC" worked for me, wondering should i do this for normal map as well, any help is appreciated
     
    Bean_std_nt and tmonestudio like this.
  9. Bean_std_nt

    Bean_std_nt

    Joined:
    Feb 6, 2013
    Posts:
    7
    In my case, texture format RGBA made terrain reflective, but format RGB is fine, no reflective terrain
     
  10. creat327

    creat327

    Joined:
    Mar 19, 2009
    Posts:
    1,756
    The bug is with whatever texture format that includes Alpha, so RGBA, ASTC, any of those will trigger the bug. If you use RGB compression it works fine. Obviously, it is a horrible solution because you lose the advantage of all the compression formats
     
  11. Muzamil199

    Muzamil199

    Joined:
    Feb 1, 2023
    Posts:
    1
    i am having the same issue in unity 2021.3.21
     
  12. ashutoshmahapatra6

    ashutoshmahapatra6

    Joined:
    May 23, 2022
    Posts:
    1
    changing the texture to RGB compressed ETC 4 bits and removing the mask map worked for me.
     
  13. DreamyFox2

    DreamyFox2

    Joined:
    Jun 27, 2023
    Posts:
    1
    I'm new in unity and don't know how to change RGB
     
  14. misgana12

    misgana12

    Joined:
    May 24, 2023
    Posts:
    1
    Create a mask map, in the layer inspector, you normally have a diffuse, Normal Map and Mask Map, and I solved mine by adding a Mask Map.