traggett / UnitySpriteShaders

An Uber Shader for rendering Sprites in Unity.
MIT License
784 stars 61 forks source link

Error on shaders #3

Closed dothem1337 closed 7 years ago

dothem1337 commented 7 years ago

Hi

I imported the shaders in Unity and getting this error: "failed to open source file: 'ShaderMaths.cginc'" (gles3) and the same on (vulcan).

Any know issues on this?

traggett commented 7 years ago

Hey! Hmm I did move all the .cginc files to a new CGIncluded folder - all the references are hooked up and are working for me though but sounds like there might be something still referencing the old location.

Are you using Spine? The Spine runtimes ship with a version of my shaders and it can cause conflicts if both the version included in Spine and the ones from this depot are in your project. I'd try deleting the shaders that come with the Spine Unity runtimes and then reimport these ones to make sure its the latest version of the shaders in your project.

dothem1337 commented 7 years ago

Yes I'm using Spine normaly, but in this case I tried to use it standalone to reproduce my problem. I have flickering (sprites dissapears, appears) on mobile phones. So I tried to use the standalone Shaders. Bot there are not both. I checked this. I think it's a bug on Unity, that the flickering appears.

alastaira commented 7 years ago

I got this error too, and have never used Spine. However, I simply ignored it and now it seems to have gone away (note that I'm not targetting GLES3 or Vulcan platforms though)

traggett commented 7 years ago

Hey! Just to check, are people still getting this on latest? All the shaders should be pointing to the correct folder now so hopefully this issue is all sorted :)