I’m having problems using the sprite atlas with vertex shaders.
I created a simple shader for vegetation, to use on trees and bushes. It works perfectly, but I discovered that if I include the sprites that use the shader, inside an atlas, the shader doesn’t work as it should.
To make sure that this problem isn’t with the shader that I wrote myself, I also tried using several other shaders from other developers, including the shader used and written by the Unity team in the Happy Harvest Demo project. The error occurs 100% of the time.
When the sprite is in an atlas package, the shader’s behavior is different, and doesn’t follow the rules established by logic. In my case, it has to do with UV, world coordinates, etc. In short, I can’t get the shader to work as it should if I’m using atlas.
What should I do here? Could someone kindly give me some advice?