Dynamic Paint Cycles - How do you make waves caused by an object to turn white? So I am trying to simulate a motorboat using a sphere in Blender Cycles using dynamic paint. So the sphere goes across the water and causes waves but I want the waves to slightly turn a whitish color because if you have ever seen a motor boat go over waves in real life there is always a trail of white waves behind it. 

My waves so far:


What I want the waves to look like: 


Node Set Up for first image: 


When I tried to apply the answer I got this as my result:


Blender File:
Geometry Input - Pointiness

You might want to experiment with the Geometry Input and try out Pointiness to mix the whitecaps with the water.





Update


The order of the Shader inputs is important. If white becomes the dominant color, the inputs on the Mix Shader need to be swapped.
The black value in the color ramp should start at 0.5 or above. We want to preserve the water material and only add the whitecap material to the pointy parts of the mesh. 


If an answer was helpful please consider marking it accepted

Here's your updated blend file: