Which doesn’t work in 5.2 because of the new Material (string) usage.
I know nothing about shaders, so how do I fix this? I’m assuming I create a shader asset and use this for the constructor instead, but could someone point me to how to define this shader?
VTP? I was just about to post exactly the same question. I don’t know anything about shaders either, so it’s the blind leading the blind here - I tried the following but it didn’t work:
What Ajr_1 said should almost work, but Unity isn’t finding the shader because it’s not compiling it with the build. Try adding the shader under “Always Included Shaders” list in ProjectSettings/Graphics (found this instruction in the Unity docs.)
The error went away, but I’m not getting any movie visuals (the plugin is a movie player for OSX/iOS). I can hear the movie playing but get no visuals, despite the texture having been created. Getting crash about 1 in 4 times after I stop the movie playing too. Guessing that there might be more needed to get the plugin working in 5.2 – unless I’ve done something silly. Any luck, Ajr_1?
Hi Sam and Ajr_1,
I’m also no shader pro, but maybe it helps if you rewrite the shader to a fragment and vertex shader without using fixed function.
It seems to me the shader you have is just rendering the texture. The last shader in the Unity Doc Writing vertex and fragment shaders called Texture is doing exactly that. Mayb this one helps