Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Shader error #7

Open
LanceJZ opened this issue Jun 23, 2017 · 2 comments
Open

Shader error #7

LanceJZ opened this issue Jun 23, 2017 · 2 comments

Comments

@LanceJZ
Copy link

LanceJZ commented Jun 23, 2017

I"m using Unity 5.6.1f1
I'm getting this error:
Shader error in 'Hidden/SSAO': Can't find include file frag_ao.cginc at line 59

@barraudf
Copy link
Contributor

It looks like the SSAO shader is working up with Unity up to 5.4.x only.

You can find the missing file :

  • Go to Unity Download Archive
  • Download Standard Assets for unity 5.4.x
  • Unzip the downloaded installer UnityStandardAssetsSetup-5.4.5f1.exe (I did this using 7zip)
  • Import the extracted Effects.unitypackage file into your project, only adding the missing cginc file

I tried this on Unity 2017.1.0b9 and the import worked, but the shader still doesn't compile (the vertex color shader compiles fine, but doesn't work either as the models are pink).

I can see the following solutions to this issue :

  • Stick to Unity 5.4.x to work on this project (which can be installed side by side with v5.6)
  • Remove all the SSAO stuff (at least in its current version) from the project
  • The SSAO stuff comes from Unity standard assets, maybe something similar exists in the current version?

Anyway, SSAO is not related to the magicavoxel part of the project, it's purely cosmetic

@barraudf
Copy link
Contributor

Hey!

I don't know if you are still using this project, but it has been updated to work with newer versions of Unity (tested on Unity 2017.2)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants