How would you go to get the frustum planes “data” for a floating origin camera, using doublepos and doubletgt?
in a non-floating origin context, I do this:
const frustum_planes = BABYLON.Frustum.GetPlanes(scene.getTransformMatrix());
const frustum_planes_data = frustum_planes.flatMap(function(plane){
return [
plane.normal.x,
plane.normal.y,
plane.normal.z,
plane.d
];
});
and it works as well as I end up with something similar to this:
[
0.0031999240366749203,
0.005199982482976804,
0.9999813601604463,
19199.542948220645,
-0.002929624637749523,
-0.005859249275499046,
-0.9999785430185038,
819182.4224407583,
0.6102906021382052,
0.00412428984551793,
0.7921668834122373,
15209.604781064781,
-0.6052083133177224,
0.0041345972614600015,
0.7960564066676452,
15284.283624444593,
0.00125362471484348,
-0.9190235789387331,
0.394200570496437,
7568.651255740652,
0.0012385934462409228,
0.923073515638596,
0.38462156805472797,
7384.734410531041
]
thank you!