1
0
mirror of https://github.com/troisjs/trois.git synced 2024-11-24 04:12:02 +08:00

Add missing SphereGeometry parameters

This commit is contained in:
Ken V 2022-01-22 05:22:52 +01:00
parent fee0fcf9b6
commit 10b86eff6a

View File

@ -12,7 +12,7 @@ export const props = {
} as const } as const
export function createGeometry(comp: any): SphereGeometry { export function createGeometry(comp: any): SphereGeometry {
return new SphereGeometry(comp.radius, comp.widthSegments, comp.heightSegments) return new SphereGeometry(comp.radius, comp.widthSegments, comp.heightSegments, comp.phiStart, comp.phiLength, comp.thetaStart, comp.thetaLength)
} }
export default geometryComponent('SphereGeometry', props, createGeometry) export default geometryComponent('SphereGeometry', props, createGeometry)