# WebGLRenderTarget doesn't seem to work in WebVR

**URL:** <https://discourse.threejs.org/t/webglrendertarget-doesnt-seem-to-work-in-webvr/33621>\
**Category:** Questions\
**Tags:** webgl-renderer\
**Created:** [January 14, 2022, 8:48am UTC](https://discourse.threejs.org/t/webglrendertarget-doesnt-seem-to-work-in-webvr/33621 "2022-01-14T08:48:21Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Run\_Zeng](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.threejs.org/run_zeng/32/23026_2.png) [@Run\_Zeng](https://discourse.threejs.org/u/Run_Zeng)\
**Post date:** [January 14, 2022, 8:48am UTC](https://discourse.threejs.org/t/webglrendertarget-doesnt-seem-to-work-in-webvr/33621/1 "2022-01-14T08:48:21Z")

</div>

I modified the [crossfade example](https://github.com/mrdoob/three.js/blob/1a241ef10048770d56e06d6cd6a64c76cc720f95/examples/webgl_postprocessing_crossfade.html) to support WebVR by simply adding an VRButton. But in WebVR, there is no crossfade when the scenes are switched, instead a black screen.  
I tried to follow the suggestion in issue [15614](https://github.com/mrdoob/three.js/issues/15614) by disabling and re-enabling VR when rendering the buffer scene，but it didn’t work。

 ![image](https://canada1.discourse-cdn.com/flex035/uploads/threejs/original/3X/4/2/426c9fe2243d13e761df978a42ac77897a925080.png)  
How can I fix this problem.

Screenshots:  
[![](https://user-images.githubusercontent.com/10266846/149475818-fad06138-379b-45bf-b56e-e5410b4980ac.gif) ](https://user-images.githubusercontent.com/10266846/149475818-fad06138-379b-45bf-b56e-e5410b4980ac.gif)
