# Water2 alpha issue

**URL:** <https://discourse.threejs.org/t/water2-alpha-issue/24413>\
**Category:** Questions\
**Tags:** water\
**Created:** [March 15, 2021, 3:59pm UTC](https://discourse.threejs.org/t/water2-alpha-issue/24413 "2021-03-15T15:59:33Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![MrMateo07](https://avatars.discourse-cdn.com/v4/letter/m/90db22/32.png) [@MrMateo07](https://discourse.threejs.org/u/MrMateo07)\
**Post date:** [March 15, 2021, 3:59pm UTC](https://discourse.threejs.org/t/water2-alpha-issue/24413/1 "2021-03-15T15:59:33Z")

</div>

Hi!

I’m using Water2 script and I’m having this problem with transparency.

 ![image](https://canada1.discourse-cdn.com/flex035/uploads/threejs/original/3X/a/d/adbe451fe3f67759224cfb90e17ea8f5ec70dfe0.jpeg)

The words and icon are planes with texture and aplha. In some cases, depending on the position of the camera, appears that “bounding box” of the plane. Why is this happening?

Here u can see it running [http://hit.larealidadaumentada.com.co/](http://hit.larealidadaumentada.com.co/)

---

<div class="post-metadata">

**Author:** ![Mugen87](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.threejs.org/mugen87/32/5645_2.png) [@Mugen87](https://discourse.threejs.org/u/Mugen87)\
**Post date:** [March 15, 2021, 4:37pm UTC](https://discourse.threejs.org/t/water2-alpha-issue/24413/2 "2021-03-15T16:37:38Z")

</div>

Does the glitch also appear when no water is in the scene?

In general, consider to not set `transparent` to `true` for the labels but simply configure `alphaTest`. Maybe to a value of `0.5`.

---

<div class="post-metadata">

**Author:** ![MrMateo07](https://avatars.discourse-cdn.com/v4/letter/m/90db22/32.png) [@MrMateo07](https://discourse.threejs.org/u/MrMateo07)\
**Post date:** [March 15, 2021, 4:56pm UTC](https://discourse.threejs.org/t/water2-alpha-issue/24413/3 "2021-03-15T16:56:23Z")

</div>

> [@Mugen87](#):
>
> Does the glitch also appear when no water is in the scene?

No, only when water is in scene… Inspectin the water2 code I found it is due to refractor. But I dont understand exactly why…

Anyway, yes,` alphaTest` works! the only thing is that give to the planes some sharpen edges. I configure `anisotropy` but the edges keeps sharpen. That little white “stroke” around it.  
 ![image](https://canada1.discourse-cdn.com/flex035/uploads/threejs/original/3X/a/3/a30855c15d477e99b0b5d240b57c880f5e1af107.jpeg)  
Any idea?

---

<div class="post-metadata">

**Author:** ![Mugen87](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.threejs.org/mugen87/32/5645_2.png) [@Mugen87](https://discourse.threejs.org/u/Mugen87)\
**Post date:** [March 15, 2021, 7:23pm UTC](https://discourse.threejs.org/t/water2-alpha-issue/24413/4 "2021-03-15T19:23:06Z")

</div>

Configuring `anisotropy` won’t help here. Try it with different values of `alphaTest`.
