In the render to texture samples, the floating cubes are only visible in the rendered texture but otherwise not visible.
I converted that sample and in my conversion the cubes are always visible, outside the rendered texture and also in the rendered texture.
In comparing what I’ve done with the code in the sample, not seeing the reason why the render to texture sample only shows cubes in the rendered texture. One difference, which may explain it, is I only use a single scene, and the sample uses two scenes.
How is it done that cubes are only visible in the rendered texture?
The title includes the sample animating scene, because the cubes are visible both in the sample code and in my conversion. I create the cubes the same way in my converted code, for both samples.