# Same Color in enableEdgeRendering and renderOutline result in collaps of one edge

**URL:** <https://forum.babylonjs.com/t/same-color-in-enableedgerendering-and-renderoutline-result-in-collaps-of-one-edge/12364>\
**Category:** Bugs\
**Created:** [July 10, 2020, 7:03am UTC](https://forum.babylonjs.com/t/same-color-in-enableedgerendering-and-renderoutline-result-in-collaps-of-one-edge/12364 "2020-07-10T07:03:55Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Browork](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/browork/32/13350_2.png) [@Browork](https://forum.babylonjs.com/u/Browork)\
**Post date:** [July 10, 2020, 7:03am UTC](https://forum.babylonjs.com/t/same-color-in-enableedgerendering-and-renderoutline-result-in-collaps-of-one-edge/12364/1 "2020-07-10T07:03:55Z")

</div>

I tried to render the edges of the 2 circles and the sides of a cylinder.  
I tried to combine renderOutline and enableEdgeRendering (Is there maybe a better solution to this?)

[https://playground.babylonjs.com/#GWFMWD#2](https://playground.babylonjs.com/#GWFMWD#2)  
 ![grafik](https://us1.discourse-cdn.com/flex024/uploads/babylonjs/original/2X/3/325d63f32827319b5085418330be0607f0b74cee.png)

However, when I make the Color of renderOutline and enableEdgeRendering the same the second half of the top circle isnt drawn anymore:  
[https://playground.babylonjs.com/#GWFMWD#3](https://playground.babylonjs.com/#GWFMWD#3)  
 ![grafik](https://us1.discourse-cdn.com/flex024/uploads/babylonjs/original/2X/c/c51b20bed12134162aebe5b11f4335882ed31cd9.png)

From above and bottom, the rendering works as expected :  
 ![grafik](https://us1.discourse-cdn.com/flex024/uploads/babylonjs/original/2X/5/5c5e57a31a3a8e25403922308620956871319a11.png)

---

<div class="post-metadata">

**Author:** ![Evgeni\_Popov](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/evgeni_popov/32/4432_2.png) [@Evgeni\_Popov](https://forum.babylonjs.com/u/Evgeni_Popov)\
**Post date:** [July 10, 2020, 8:19am UTC](https://forum.babylonjs.com/t/same-color-in-enableedgerendering-and-renderoutline-result-in-collaps-of-one-edge/12364/2 "2020-07-10T08:19:51Z")

</div>

`edgesColor` is expecting a `Color4`:

[https://playground.babylonjs.com/#GWFMWD#7](https://playground.babylonjs.com/#GWFMWD#7)

---

<div class="post-metadata">

**Author:** ![Browork](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/browork/32/13350_2.png) [@Browork](https://forum.babylonjs.com/u/Browork)\
**Post date:** [July 10, 2020, 8:38am UTC](https://forum.babylonjs.com/t/same-color-in-enableedgerendering-and-renderoutline-result-in-collaps-of-one-edge/12364/3 "2020-07-10T08:38:40Z")

</div>

My bad, thanks for the fast response 🙂
