Water foam shader can't work in react three fiber

I tried to convert this to react three fiber , but mine is not working as i expected and i still don’t know where I get wrong
Here is codesandbox : pedantic-merkle-x36dz9 - CodeSandbox
Can anyone help me. :cold_sweat: