Hi reader,
I made an adaptable shader for a project which reads materials from a .txt files and changes what nodes are enabled in the shader, but i've ran against a problem with the transparency. In the image provide you can see how the shader is constructed. Now when I run it in the editor it works fine without any performance issue, but when I build the application and the model has transparency the performance on android phones really tanks. I've tried it on multiple phones and with and without a texture on the transparent material. Now my question was if I could do anything about the performance of the shader so it will run smoothly on phones.
My second question is when I run the build version the emission color is applied but the texturemap isn't and i was hoping you may have a solution for this aswell.
Thanks for reading and I hope someone has a solution.
The image of the shader