the best way to learn is to download such a shader and taking a look at its hypershade graph to see how the nodes stack together to create the effect.