# Watermaterial constructor

**URL:** <https://forum.babylonjs.com/t/watermaterial-constructor/15458>\
**Category:** Bugs\
**Created:** [November 5, 2020, 10:04pm UTC](https://forum.babylonjs.com/t/watermaterial-constructor/15458 "2020-11-05T22:04:03Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![FBa](https://avatars.discourse-cdn.com/v4/letter/f/f4b2a3/32.png) [@FBa](https://forum.babylonjs.com/u/FBa)\
**Post date:** [November 5, 2020, 10:04pm UTC](https://forum.babylonjs.com/t/watermaterial-constructor/15458/1 "2020-11-05T22:04:03Z")

</div>

I can’t seem to get this to work outside the playground. It says watermaterial constructor can’t be found. [https://playground.babylonjs.com/#L76FB1#90](https://playground.babylonjs.com/#L76FB1#90)

---

<div class="post-metadata">

**Author:** ![Deltakosh](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/deltakosh/32/26635_2.png) [@Deltakosh](https://forum.babylonjs.com/u/Deltakosh)\
**Post date:** [November 5, 2020, 11:02pm UTC](https://forum.babylonjs.com/t/watermaterial-constructor/15458/2 "2020-11-05T23:02:06Z")

</div>

Yep we removed it for License reasons

but @julien-moreau was telling me he will work on a new one for next release

---

<div class="post-metadata">

**Author:** ![julien-moreau](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/julien-moreau/32/12070_2.png) [@julien-moreau](https://forum.babylonjs.com/u/julien-moreau)\
**Post date:** [November 5, 2020, 11:48pm UTC](https://forum.babylonjs.com/t/watermaterial-constructor/15458/3 "2020-11-05T23:48:42Z")

</div>

Yeah that’s right! A water material 2 will be available 🙂

@FBa do you have included the « babylonjs-materials » npm package in your project? This material is not available directly in BabylonJS but in the package I mentioned above 🙂

---

<div class="post-metadata">

**Author:** ![FBa](https://avatars.discourse-cdn.com/v4/letter/f/f4b2a3/32.png) [@FBa](https://forum.babylonjs.com/u/FBa)\
**Post date:** [November 6, 2020, 12:01am UTC](https://forum.babylonjs.com/t/watermaterial-constructor/15458/4 "2020-11-06T00:01:34Z")

</div>

What’s the code to include that if I’m using it on a webpage html+css+js?

---

<div class="post-metadata">

**Author:** ![julien-moreau](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/julien-moreau/32/12070_2.png) [@julien-moreau](https://forum.babylonjs.com/u/julien-moreau)\
**Post date:** [November 6, 2020, 11:28am UTC](https://forum.babylonjs.com/t/watermaterial-constructor/15458/5 "2020-11-06T11:28:09Z")

</div>

You can find the documenation of the package here: [babylonjs-materials - npm](https://www.npmjs.com/package/babylonjs-materials)  
You can include the CDN file directly or install the package and load the file “./node\_modules/babylonjs-materials/the\_file.js” (which has the same name as the CDN files).

Once loaded, the constructors will be available on “.BABYLON”
