Custom Material for water system

How do I make water system buoyancy work with custom water material?