I’m struggling with the use of a mirror texture in a Custom Shader.
I managed to get it to work but only if the MirrorTexture is also associated with a babylon object with a standard BackgroundMaterial (I found an example somewhere that worked)
Basically my current state is :
Object A - Custom shader that uses the mirror with “.setTexture”
Object B - BackgroundMaterial that uses the mirror with "BackgroundMaterial.reflectionTexture = mirror; "
The problem is : The mirror texture only gets updated if the Object B exists AND is in the view.
Is there any way to control when and if the mirror texture must be updated without using “Object B”.