title: How do I make an object visible in a render target, but not in the main scene in BabylonJS?
body: <p>I've been experimenting with BabylonJS, and I want to make a visual effect that requires rendering parts of the scene in an external render target texture, but not in the main scene itself. Basically, I want to make the object invisible in the main scene, but visible in the render target.</p>
  
  <p>See the Playground link here: <a href="https://playground.babylonjs.com/#PL5WU0" rel="nofollow noreferrer">https://playground.babylonjs.com/#PL5WU0</a></p>
  
  <p>Currently, the sphere is drawn above the textured ground plane. How do I change it so the sphere is invisible, and can only be seen in the RT texture?</p>