Search Unity

WEBGL Texture Glitch

Discussion in 'Web' started by dariuspowell, Apr 19, 2021.

  1. dariuspowell

    dariuspowell

    Joined:
    Jun 11, 2015
    Posts:
    28
    Hi.

    I'm working on a WebGL game and all looks fine it editor but when I play in browser there is a glitch with the textures. I though it might Z-depth issue but the layers are separated. The main body and front leg is one material, the back leg is a separate material. I've played around with render queue but doesn't make a difference.

    UNITY version is 2019.2.14f. The shaders are UNLIT Texture (although tried others too).

    It only appears to be happening when the leg or body overlaps with layer behind it.

    Any advice would be appreciated.

    many thanks
    Darius.
     

    Attached Files:

  2. NickoG

    NickoG

    Joined:
    Apr 19, 2015
    Posts:
    8
    Can you change the leg's position on the Z axis?
    I think you can still place objects in the 3D grid when you're making a 2D game, if you click the 3D/2D toggle.
    Or try a different projection mode with the camera.
     
  3. dariuspowell

    dariuspowell

    Joined:
    Jun 11, 2015
    Posts:
    28
    Hi NickoG.

    Thanks for the reply. I think I've just figured it out. It was simply my camera clipping settings where too low and high. Changing those seems to have made the difference.

    thanks