Is anybody from Unity reading this forum? After paying more than 2k $ for my pro license, i would expect to get some support at some point… Unless i’m not in the correct forum. If that’s the case where should i post?
You may have solved the original poster’s issue but there may be other problems with #include in compute shaders. For instance the directory search (#include folders) seems to work different for .compute shaders than .shader shaders. I’ve been trying to make a unified HLSL #include library for both and having a heck of a time. Had it working more or less by putting everything in the same folder in Unity 4, but in Unity 5 beta even that no longer works and that’s why I am here.
Its also worth noting that I tried as suggested elsewhere using a path relative to the unity project root for example …
#include “Assets/MyFolder/myinclude.compute”
then i figured it’s commonly accepted that cginc is a cg app inclusion that unity should be able to handle as documented in shader rendering threads so i thought i would rename the extension to see if if behaved differently …
#include “Assets/MyFolder/myinclude.cginc”
… maybe that’s part of the problem, are compute shaders not treated like normal shaders in the unity compilation pipeline?
…
I don’t expect a reply to this, but I hope someone at unity actually reads this and solves this problem as it seems to be a bug.