Why my unity sahder is pink?

Updated on January 3, 2017 in [D] Game Dev. gossip
Share on Facebook0Tweet about this on TwitterShare on Google+0Share on Reddit0
3 on January 2, 2017

why my unity shaders are looking pink can u give me a solution? I need help i asked unity they didnt give me a reply plz help me.

  • Liked by
Reply
0 on January 2, 2017

It’s a common problem when you do something bad.
So here is how you don’t do the bad thing you did because I totally know what it is:

You fix this, that, those, then you go into the fragment function, you delete it, and then re-make it with correct spelling of “fragamount”. Then you change the Vertex function to something that does stuff, until it works. And after that, you go into the surface function, and do that in it:
This that and those
Because your sahder, based on the information I got, is both a vertex sahder and a surface sahder. It’s because of the name “sahder”, because shaders don’t allow both of those types together.

Hope this helps! 🙂

  • Liked by
Reply
Cancel
0 on January 3, 2017

Another problem is simply that Unity ends up trying to apply a shader but it is simply miscast, like users above are saying. Basically, it’s a “null” shader. so try doublechecking all of Aviram’s suggestions, or recreating the shaders and dragging them into their appropriate inspector positions.

  • Liked by
Reply
Cancel