- Home /
Precompile shader
I have quite a number of shader assets, and when I import them to a new project, it gets imported and the time is very very slow. Ideally I like to precompile them, or put them in an dll assembly (if possible?) so the import time is reduced. I have tried a dll assembly with C# scripts, it works fine but how would do I do it for shader files?
Comment
Answer by Fornoreason1000 · Nov 02, 2013 at 02:47 AM
http://answers.unity3d.com/questions/539041/add-shader-code-to-dll.html
Its apparently impossible to compile .shader files into a DLL. I'm kinda surprised since you can put images into DLL(or just a var storing direct image binary). other than that you will have to deal with openSource shaders
Your answer