Search Unity

Does Sprite-Secondary Textures need Non-Atlas mode? (2019.3.0)

Discussion in '2D' started by kyuskoj, Sep 25, 2019.

  1. kyuskoj

    kyuskoj

    Joined:
    Aug 28, 2013
    Posts:
    56
    My shader doesn't recognize secondary texture on play-mode with Atlas.
     
    Last edited: Sep 26, 2019
  2. mahdi_jeddi

    mahdi_jeddi

    Joined:
    Jul 18, 2016
    Posts:
    246
    I think the problem is that the UVs get changed because now they are on the atlas and the secondary texture's UV is gonna be different than the original sprite's UV. So now the question is how to extract the UV for this secondary texture.
    Can anyone help? I'm digging through the documentation and trying to hack the new lit shaders to see how they do it with no luck.
     
  3. mahdi_jeddi

    mahdi_jeddi

    Joined:
    Jul 18, 2016
    Posts:
    246