Pre pass and view dependent texture generation on VR

Hello! I’m just starting on babylon and I’m writing a small test demo. Basically what I’d like to do is somehow get access to the scene’s XR cameras in order to render a texture with tiled light information before actually rendering the scene. What would be the best way to go about it, I think it should be onBeforeRenderObservable but I was looking for best practices on how to do depth prepass and such Thanks!

adding @RaananW