WaterMaterial is not a constructor

For some reason the Water Material only works when used in the Playground, but when I try to use it in my project it doesn’t work.


You should import the material library in your project.

Excerpt from the head tag of the Playground:

1 Like