Using Material Functions

How to use material functions within your materials.