darkfall / MagicaVoxelUnity

Unity3D plugin for MagicaVoxel's vox format.
MIT License
197 stars 34 forks source link

Shader error #7

Open LanceJZ opened 7 years ago

LanceJZ commented 7 years ago

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 commented 7 years ago

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

You can find the missing 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 :

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

barraudf commented 6 years ago

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)