Materials are black after laoding them from an assetbundle
Hi community,
i've got following problem:
I've upgraded to unity 5.3. After that i've done a rebuild of my asset-bundles i want to use. One of the Assetbundles is containing materials with custom shaders we have written, so the rebuild was neccessary because of the dropped "precompiled shader support".
When i'm loading the rebuild assetbundle with the materials and assign them to some gameobjects with meshes, the materials are all black.
I've checked the properties of the materials before building the asset bundle and after loading them from the asset bundle. The properties are the same.
Is there anythink else to after loading the materials then assigning them?
I have a similar issue here. I believe it is a shader compatability issue as I can reproduce it with the given shader but I have not yet been able to resolve it.
I have resolved my issue by commenting out one line of my shader. Can't explain why this was broken from 5.2.3 onwards. $$anonymous$$ight be a quick fix for you though.