# Babylonjs renderTextureTarget

**URL:** <https://forum.babylonjs.com/t/babylonjs-rendertexturetarget/51297>\
**Category:** Questions\
**Tags:** render-target\
**Created:** [June 13, 2024, 12:21pm UTC](https://forum.babylonjs.com/t/babylonjs-rendertexturetarget/51297 "2024-06-13T12:21:09Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![woniubushiniu](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/woniubushiniu/32/22130_2.png) [@woniubushiniu](https://forum.babylonjs.com/u/woniubushiniu)\
**Post date:** [June 13, 2024, 12:21pm UTC](https://forum.babylonjs.com/t/babylonjs-rendertexturetarget/51297/1 "2024-06-13T12:21:10Z")

</div>

If I only want to render the scene to a renderTarget, and then render the scene only once, is there any good way to achieve this? Normally, when using rendertarget, the entire scene will be rendered twice.

---

<div class="post-metadata">

**Author:** ![Cedric](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/cedric/32/2742_2.png) [@Cedric](https://forum.babylonjs.com/u/Cedric)\
**Post date:** [June 13, 2024, 12:27pm UTC](https://forum.babylonjs.com/t/babylonjs-rendertexturetarget/51297/2 "2024-06-13T12:27:20Z")

</div>

You can use MRT [WebGL 2 Basics | Real-Time Rendering](https://www.realtimerendering.com/blog/webgl-2-basics/) to render to multiple targets at once. but bound RTs must have same dimensions.  
What is your use case?

---

<div class="post-metadata">

**Author:** ![woniubushiniu](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/woniubushiniu/32/22130_2.png) [@woniubushiniu](https://forum.babylonjs.com/u/woniubushiniu)\
**Post date:** [June 13, 2024, 12:30pm UTC](https://forum.babylonjs.com/t/babylonjs-rendertexturetarget/51297/3 "2024-06-13T12:30:06Z")

</div>

Currently I need to display glass effects on mobile devices, and I can only use webgl1 to achieve refraction. My current solution is to draw transparent objects and opaque objects separately, and use the rendertarget of opaque objects in the refraction texture.

---

<div class="post-metadata">

**Author:** ![Cedric](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/cedric/32/2742_2.png) [@Cedric](https://forum.babylonjs.com/u/Cedric)\
**Post date:** [June 13, 2024, 4:22pm UTC](https://forum.babylonjs.com/t/babylonjs-rendertexturetarget/51297/4 "2024-06-13T16:22:20Z")

</div>

Did you see this [Babylon.js docs](https://doc.babylonjs.com/features/featuresDeepDive/materials/using/reflectionTexture#refractiontexture)
