Unity 5 shader variant in details

  • The variants display in unity5 shader assets really make me confused, one of my simple surface shader in unity4.6 only have 6 variants, but in unity5 it becomes 20, open the “ParsedCombinations-XXXX” file by click “show” button, I found multiple platforms generated,
    What are those platforms stand for?
    Why not generate variants for current platform only?
    How to reduce them to the utmost?
    2256049--150799--Snapeshot_2015-08-18 18 35 20 (2).png

  • After adding this shader into .shadervariants file, I found even more keyword, including those supposed to excluded by the shader compile directives, where are these keywords comes from? how to eliminate them?
    2256049--150801--Snapeshot_2015-08-18 18 48 46 (2).png

2256049–150800–ParsedCombinations-SurfaceSimple.shader (2.14 KB)

This is too difficult?

Hi, starportx. I have the same question as you. Do you know why the shader have so many variants?