# Is there a a way to make a mesh visible only in reflection probe?

**URL:** <https://forum.babylonjs.com/t/is-there-a-a-way-to-make-a-mesh-visible-only-in-reflection-probe/6866>\
**Category:** Questions\
**Created:** [November 8, 2019, 10:21am UTC](https://forum.babylonjs.com/t/is-there-a-a-way-to-make-a-mesh-visible-only-in-reflection-probe/6866 "2019-11-08T10:21:23Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![julee](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/julee/32/4810_2.png) [@julee](https://forum.babylonjs.com/u/julee)\
**Post date:** [November 8, 2019, 10:21am UTC](https://forum.babylonjs.com/t/is-there-a-a-way-to-make-a-mesh-visible-only-in-reflection-probe/6866/1 "2019-11-08T10:21:23Z")

</div>

Hello.  
I have created a scene which has a model and a skybox. Meshes material reflects the skybox (e.g. skybox is in the reflection probe’s render list). Skybox visibility is toggled during the render. Scene has a transparent clear color. Is there a way to keep skybox visible in the reflection probe while skybox is not shown in the scene?  
I tried 3 ways to achieve it:

1. tried to disable skybox (e.g. skybox.setEnabled(false))
2. tried to set visibility to 0 (e.g. skybox.visibility = 0)
3. tried to change camera’s maxZ to a value which is smaller than the distance between camera and skybox’s facet.  
All of those approaches give the same result: skybox is not invisible in both scene and reflection probe.

Here is the link to my example:  
[https://www.babylonjs-playground.com/#W18REM#1](https://www.babylonjs-playground.com/#W18REM#1)

If there wouldn’t be need to support a transparent clear color, I would just create a smaller skybox and wouldn’t add it to the reflection probe’s render list. But it doesn’t work for transparent clear color because skyboxes’s colors are blended.

Thanks

---

<div class="post-metadata">

**Author:** ![syntheticmagus](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/syntheticmagus/32/395_2.png) [@syntheticmagus](https://forum.babylonjs.com/u/syntheticmagus)\
**Post date:** [November 8, 2019, 5:09pm UTC](https://forum.babylonjs.com/t/is-there-a-a-way-to-make-a-mesh-visible-only-in-reflection-probe/6866/2 "2019-11-08T17:09:37Z")

</div>

Hi julee,

I think you can achieve the effect you’re going for by [using a cube texture as an HDR environment](https://doc.babylonjs.com/how_to/use_hdr_environment#using-a-pure-cube-texture) with [physically-based rendering](https://doc.babylonjs.com/how_to/physically_based_rendering). Does the following Playground achieve the right look?

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

---

<div class="post-metadata">

**Author:** ![julee](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/julee/32/4810_2.png) [@julee](https://forum.babylonjs.com/u/julee)\
**Post date:** [December 24, 2019, 8:46pm UTC](https://forum.babylonjs.com/t/is-there-a-a-way-to-make-a-mesh-visible-only-in-reflection-probe/6866/3 "2019-12-24T20:46:45Z")

</div>

Hello,

Thank you, this is a good solution!
