- Home /
Add shader code to dll
What is the proper way to add shader code to a class library? I am building on visual studio 2010, it seems no matter where i put my shader code i get errors. Is there a specific wrapper i need to add or is loading shaders from a dll not supported/ill-advised?
I'm assu$$anonymous$$g you're not using the shaders that Unity gives you and then trying to load the shaders as a plugin? Unity won't just see a dll if you don't put some supporting code for it.
Answer by jheiling · Sep 18, 2013 at 02:54 PM
Sorry, but that's impossible. Shaders and regular code are two different things!
Ok, thats i need to know then. I wanted to pack everything into a single dll, but having an external shader file with my package isn't a big deal. If you have any additional information id appreciate it.