updating culling branch to work with RenderTexture