Is there any way to split the plane using CSG2?

Because OIT is more performance consuming, I want to try to achieve correct transparent rendering by splitting plane sort. However, CSG2 does not seem to support Plane.

PG:https://playground.babylonjs.com/#PJQHYV#10

You can create very thin boxes and subtract them:

Set the height of both to 0.01 to get a “plane” instead of a box.

1 Like

thank you,bro :smile:.But the result of adding material to Box and Plane is different.
PG:https://playground.babylonjs.com/#PJQHYV#14

It’s all about uvs. This PG could help you:

The left one is a real plane. The right one are the boxes. I suppose you’d like to have the same results, the pagoda (is it a pagoda? :slight_smile: ) cuit in half. Is this correct?

1 Like

Yes. Thank you very much. It’s a little different. I’ll figure it out :grin:

1 Like