When using this.scene.freezeActiveMeshes() what would I need to unfreeze to get a ground reflection working agian?

https://www.babylonjs-playground.com/#KPXWT0#11

Just like the question says, I tried unfreezing the ground, but that did not seem to work.

I bet it wont work, I need all my matrices to be calculated in order to keep the reflection in the right place I guess?

after some research it looks like this parameter set to true causes the reflection to go off

scene._activeMeshesFrozen = true
1 Like

@Pryme8 you can try this:

camera.customRenderTargets.push(mirrorMaterial.reflectionTexture);

(your playground updated)

A brief explanation why this helps can be found here in this topic.

2 Likes