sphere.md 750 B

Esfera

El paquete cientos provee un <Sphere /> componente que funciona como un atajo para un CSphereGeometry y un MeshBasicMaterial con un Mesh objeto.

args: [
  radius: number,
  widthSegments: number,
  heightSegments: number,
  phiStart: number,
  phiLength: number,
  thetaStart: number,
  thetaLength: number
]

Referencia: SphereGeometry

Utilización

<Sphere :args="[1, 1, 1]" color="pink" />

// ESfera con transformaciones materiales a medida
<Sphere ref="planeRef" :args="[1, 1, 1]" :position="[2, 4, 0]">
  <TresMeshToonMaterial color="pink" />
</Sphere>