Quantcast
Viewing all articles
Browse latest Browse all 312

Assetbundles with custom shaders

Hello, here we got a problem with assetbundles using custom shaders again. "Again" means there have been already too many discussions on this topic before, among Unity Forums and Unity Answers. Here is my problem: (1) I have put all my custom shaders into Resources folder; (2) I build a bundle for custom shaders before anything else gets built, with proper dependencies. While running, the shader bundle is always loaded first, and then others, following a exact same way as described in Unity's [Manual][1]. (3) While running, all objects are rendered with a error apperance, but in the inspector, meterial、texture and shader are all set properly. As following: ![alt text][2] So, what should i do with this? to write a script reassigning shaders to all object's in my game? [1]: http://docs.unity3d.com/Documentation/Manual/managingassetdependencies.html [2]: /storage/temp/18438-shader_error.jpeg

Viewing all articles
Browse latest Browse all 312

Trending Articles