SKYBOXMODE and reflectionTexture.boundingBoxSize

When using a texture in SKYBOXMODE or CUBICMODE, what is the effect of setting a boundingBoxSize?

I would have expected that the line
mat.reflectionTexture.boundingBoxSize = new BABYLON.Vector3(1.0, 0.5, 0.5);
Adjust the projection such that each surface of the Mesh in SKYBOXMODE corresponds to one part of the texture.
Did I do something wrong and is there another way to make the texture fit?
I noticed that for proper SKYBOXes there is an effect when setting the boundingBoxSize

, but somehow not for meshes?

I found a solution, which is to set
mat.reflectionTexture.getReflectionTextureMatrix()._m[0] = 0.5;
instead of using the bounding box, but I am not sure, if this is the correct way of doing it.
Here is the playground:

boundingBoxSize and boundingBoxPosition are used to define local cube maps.


This url should help understand what local cube maps are.

Note that you must use CUBIC_MODE for local cube maps, SKYBOX won’t work.

Also, you should set the boundingBoxPosition correctly (at the center of your bounding box).