Rounded

A plane with rounded corners, used for much of the editor UI.

const plane = Rounded({
  width: 0.75,
  height: 0.55,
  radius: 0.02, // corner radius
  material: blueMaterial,
});

const extrudedPlane = Rounded({
  width: 0.75,
  height: 0.55,
  radius: 0.02, // corner radius
  material: darkMaterial,
  depth: 0.1, // Use this for extrusion
});

const bottomRounded = Rounded({
  width: 0.75,
  height: 0.55,
  radius: 0.02,
  // per corner radius
  topLeftRadius: 0, // no radius
  topRightRadius: 0, // no radius
  bottomLeftRadius: 0.2,
  bottomRightRadius: 0.1,
});