# Is it possible to access to elements created through renderOutline?

**URL:** <https://forum.babylonjs.com/t/is-it-possible-to-access-to-elements-created-through-renderoutline/26094>\
**Category:** Questions\
**Created:** [December 15, 2021, 4:56pm UTC](https://forum.babylonjs.com/t/is-it-possible-to-access-to-elements-created-through-renderoutline/26094 "2021-12-15T16:56:38Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Vinc3r](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/vinc3r/32/25340_2.png) [@Vinc3r](https://forum.babylonjs.com/u/Vinc3r)\
**Post date:** [December 15, 2021, 4:56pm UTC](https://forum.babylonjs.com/t/is-it-possible-to-access-to-elements-created-through-renderoutline/26094/1 "2021-12-15T16:56:38Z")

</div>

When using a clipPlane on a mesh, the outline effect is not taken into account.  
I’ve guessed it is a mesh (maybe I’m wrong?), but if so, it’s not visible in `scene.meshes`.

So, is there a way to access to the outlines elements?

![out](https://i.imgur.com/Z94ccdP.png)

[https://playground.babylonjs.com/#LE84PP#1](https://playground.babylonjs.com/#LE84PP#1)

---

<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:** [December 15, 2021, 5:27pm UTC](https://forum.babylonjs.com/t/is-it-possible-to-access-to-elements-created-through-renderoutline/26094/2 "2021-12-15T17:27:56Z")

</div>

The outline renderer does not currently support clip planes. Here’s a PR for that:

> <https://github.com/BabylonJS/Babylon.js/pull/11652>
>
> See https://forum.babylonjs.com/t/is-it-possible-to-access-to-elements-created-t…hrough-renderoutline/26094

You will get:  
 ![image](https://us1.discourse-cdn.com/flex024/uploads/babylonjs/original/3X/e/6/e6e5f010efa2ef090a38607e161e6066facb2213.png)

(not totally sure it’s what you expect)

Note that the outline is not a separate mesh, it’s the same mesh which is rendered with its vertices moved along the normals to make it a little bigger.

---

<div class="post-metadata">

**Author:** ![Vinc3r](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/vinc3r/32/25340_2.png) [@Vinc3r](https://forum.babylonjs.com/u/Vinc3r)\
**Post date:** [December 15, 2021, 5:42pm UTC](https://forum.babylonjs.com/t/is-it-possible-to-access-to-elements-created-through-renderoutline/26094/3 "2021-12-15T17:42:13Z")

</div>

So technically, the outline is “just” a shader. Nice, thanks for the PR!

---

<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:** [December 15, 2021, 5:46pm UTC](https://forum.babylonjs.com/t/is-it-possible-to-access-to-elements-created-through-renderoutline/26094/4 "2021-12-15T17:46:50Z")

</div>

It is a special shader that is used to render the mesh a first time, which will render the mesh a little bigger and with the outline color. Then the mesh is rendered over it with its regular material.
