The Curvature shader is an easy way to add detail and realism to your shaders. In this short tutorial we will use the Curvature shader to create a wear and tear shading effect. It will be used to represent where the edges of a hard surface are scraped on the model of a mech. Notice in the image above how the edges of the paint appear worn off, exposing the metal underneath.
|The shader used in this scene can be downloaded here.|
A Layered shader is used to layer two different Standard shaders. We will use one Standard shader for the top green paint layer (green) and another Standard shader to represent the exposed metallic surface underneath.
- Create a Layered shader and assign it to the object.
- Create a Standard shader and rename it Green Paint.
- Create another Standard shader and rename it Metal.
- Connect the Standard shaders to the Layered shader as in the image below.
- Connect a Noise shader to the radius of a Curvature shader (bias and multiply will work too). Experiment with different noise settings to get the look that you want. Don't forget that you can connect a Color Correct shader to the Noise shader to further refine the appearance of the 'worn' look.
- Connect the aiCurvature shader to the Transparency attribute of the layered shader. This will control the blending between the two Standard shaders.
- In the example images below, the Bias parameter of the Curvature shader has been increased and exaggerated to better demonstrate the effect.
- Increasing the number of Curvature samples reduces noise and gives a better quality result.
Final shader network