Antoshidza / NSprites-Foundation

Basic assets for working with NSprites package
MIT License
64 stars 17 forks source link

Sorting bug #17

Open FilipGaida99 opened 2 months ago

FilipGaida99 commented 2 months ago

Sorting doesn't work with Packages/com.tonymax.nsprites.foundation/Graphics/Regular Render/RegularSprite_SG_Shader.shadergraph. Packages/com.tonymax.nsprites.foundation/Graphics/Regular Render/RegularSprite_Material.mat doesn't rendering at all when using Unity Atlas.

Not matter how I set indexes between chassis and weapon off satellite, it only take in account Y position. Don't see source code for that except for regular shader, but im using SG one.

image

Antoshidza commented 2 months ago

It is because I've forget to introduce that changes for shader graph. Sorry for that. Will try to fix that. Also do you have any reason to use SG shader instead of regular one?

FilipGaida99 commented 2 months ago

Thank you. I tried SG because regular won't work, but i have just realised it was my fault, because i hadn't noticed rednerer changed to 2D (probably in version upgrade). Now regular works, so this is not high priority