Water effect for lake

You can only call update on a pc.StandardMaterial. But you seem to be calling it on a pc.Material.