Search Unity

Non Atlas Image Scroller

Discussion in 'General Graphics' started by GoRiLLa, Sep 23, 2015.

  1. GoRiLLa

    GoRiLLa

    Joined:
    Oct 8, 2013
    Posts:
    14
    Hi, dear Unity community.

    I'm going to make an world space ad scroller just like this one:


    Making this using an atlas is trivial by adjusting the texture offsets. However, I have to find a solution for doing it without an atlas, because I am going to download images on the fly and don't want to spend cpu cycles on combining them into one big texture atlas in real time.

    My shader knowledge is a bit lacking, but my guess is that this would be possible and probably best to do using some kind of a shader. However, I am sure there are other ways of doing what I want as well, like adding alpha pixels at the texture borders, set wrap mode to clamp and then adjust the offsets, but this sounds expensive fill rate wise and I'm not sure if this is the best solution.

    So, if anyone could nudge me in the right direction here it would be greatly appreciated!
     
  2. GoRiLLa

    GoRiLLa

    Joined:
    Oct 8, 2013
    Posts:
    14