I was creating a dissolve shader for a 2d game i am working on. It works fine for tileMap and other sprites.
- Sprite works fine in the editor window but in the play mode it disappears in both scene and game view.
Is this due to color of the sprite i.e black and white?
Here is the Dissolve Shader Graph.
When in scene view
masculineequalhapuku
when in play mode in game window. Also one can observe that the sprite animations are playing the MainTexture section in the inspector window.
veneratedbigagouti
- The layer order is not followed and the spriteRendere to which the material is applied is overlapped by other layers.
Setup:
Unity 2018.2.14f1
Shader Graph 3.0.0 preview
Update: change to scaling made it disappear.
- I handle the direction facing by setting the scale values. to 1 or -1 so when i removed this it starts working fine.
- Also i have come across some post related to scale and shader issue. will read on that for now.