- Home /
Is it possible to make the new standard shader act like a toon shader?
I really like he way the toon shaders look, and I really like the way the standard shader gives all lights shadows. I know the new standard shader works very differently than the all the old shaders, and I was wondering if there something about the way the standard shader functions that makes giving it the properties of a toon shader impossible.
Granted i don't know much about the nuts and bolts of shaders, but I feel like the toon shaders are pretty popular in unity and I would think if it was possible someone would have come up with a toon shader that acts like the standard shader (shadows from all lights etc.) by now. I've yet to see one.
I'm wondering because I've been working on a game for some time now and the toon shader has become the backbone of the graphics. The cool new features on the standard shader are making me rethink if thats the way I want to go, but if I knew that there would be a toon shader that functions in the same way as the new standard shader at some point in the future it would make me very happy.
Hey just wanted to check back and ask if my shaders are working as you expected?
Hey, I sent a reply like 5 $$anonymous$$utes ago, but I just checked and its not there anymore. To answer your question ... YES it works PERFECTLY!
So I had tried it out a while ago and couldn't get it work at all so I was like oh well, it was worth a shot, but tonight I was poking around with my shaders and I found the Le Pampelmuse section in the shaders, so I actually tested your stuff out for the first time, and its EXACTLY what I was looking for. Not sure what I was using before :/
Thank you SOOOO much. I have been trying to get these fracking shadows on my toon shader for ages. It makes me wonder what other magic you can work ...
Haha, great! I'm glad it's the right thing for you. ;)
You could "accept" my answer now so other people see it is answered in the list of questions and you could also close it too, since you have a solution now. :D
I'm afraid I can't do any magicat the moment, I'm currently trying to make my own wind cg to use ins$$anonymous$$d of the horrible Unity 3 wind that still hasn't changed to match today's standards. I hate how it affects everything the same. So unrealistic.
Shader wise, I haven't done much at the moment, but regarding the wind, I will have to look into vertex shaders of some sort.
Answer by Le-Pampelmuse · Oct 30, 2015 at 06:27 AM
I recently edited the nature/leaves shader to cast/receive shadows from everything.
Can you point me to the download location of the shader you are using? Then I could look into it and send you the edited copy.
I'm guessing you're asking about the toon shader. It's the toon-shader that came with Unity in like ... 3.something or 4.something. Theres a link to that here [Old Unity download package][1]
and a link to the text [here][2]
The new shader that I want to add toon shading to is the one that comes with Unity 5. It's called standard shader. If you could do either that would be awesome. Also, I haven't gotten the nature/leaves shader to work at all since I upgraded to Unity 5, I was using it for all my grass and foliage and haven't been able to get it do anything.
Thanks! [1]: https://www.assetstore.unity3d.com/en/#!/content/32351 [2]: http://answers.unity3d.com/storage/temp/41609-shader.txt
Hello. I hopefully manged to get your wanted result. Unfortunately since a couple of days I can't upload any images to the comments to show you. I guess UA broke something about that. :/
Here's the link. It is the Shader directory to which I upload my solutions to shader issues. There you can find the Leaves as well.
https://www.dropbox.com/sh/u9j7bti7grpo9uk/AADIPdsAwa6egGvCuOIdletza?dl=0
Feel free to ask anything if unclear or if it's not how you imagined it.
If this is not quite what you wanted, I can certainly try to make a Standard Shader copy that renders like the toon shader + the outline, but I thought the lack of shadows was the only thing bothering you.
Awesome! Thank you so much
Sorry it took so long to get back. I am pretty new to shaders as I said, so I'll have to dedicate a night or so to figure out exactly how to get them up so I can check em out, Ill be sure to let you know how it works out when I get them into my game.
Also the lack of dynamic shadows was my main issue, if thats handled then Ill be more than happy.
All you have to do is drag and drop them anywhere inside your assets folder.
Then for any object you want them to be applied to, change the shader in the $$anonymous$$aterial's inspector.
Simply put, $$anonymous$$eshes need materials to be visible, $$anonymous$$aterials use shaders to do anything. ;)
Hope it does the trick!
Holy SHIT! It worked! I was using the wrong shader and not being able to get it working, but I was messing around and found the LePampelmuse subsection in the shaders and it works like a charm! Thank you SOOOOO much!