Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trialSpencer Burkhalter
2,328 PointsHow to create a "cartoony" texture, like in Subway Surfers?
How would you make a texture so that it looks like a cartoon? For example in Subway Surfers, how would you make a texture that makes a character look like that? Also how would you style one part of the body one color and a different part another? For example one arm blue and another red.
1 Answer
Alan Mattan贸
Courses Plus Student 12,188 PointsYou can make or import a specific shader (toon shader with special shadow ramp) and apply them to each game object mesh ( system use in mobile) or better you can apply one post process filter effect directly into the camera that transform the final image into cartoony style.
Toon Shaders: In the Standard Assets, effect folder, there is a toonShading folder including ToonBasic shader, ToonBasicOutline, ToonLit and ToonLitOutline. I think you must download the "Shader Calibration Scene" from the asset store for getting this free Unity shaders examples.
Filter Effects: It apply a filter to the final rendering image (more computational cost). Probably you want to use les color transitions sfumature and less number of colors (16? in tot) in the pallet so that the shadows are hard and the surface looks like plane. In the filters you can add a border to the edges.
Look into the asset store in shaders and post process effect filters as reference to understand the effect you are looking for. You can active them using the Unity plugins and making same trim in it. Or making script shaders. There is a nice book about scripting shaders and includes scripting examples of toon ramps.