gpu-curtains
    Preparing search index...

    Parameters used to create a SphereGeometry

    interface SphereGeometryParams {
        widthSegments?: number;
        heightSegments?: number;
        phiStart?: number;
        phiLength?: number;
        thetaStart?: number;
        thetaLength?: number;
        instancesCount?: number;
        topology?: GPUPrimitiveTopology;
        vertexBuffers?: VertexBufferParams[];
        mapBuffersAtCreation?: boolean;
    }

    Hierarchy (View Summary)

    Index

    Properties

    widthSegments?: number

    Number of horizontal segments

    heightSegments?: number

    Number of vertical segments

    phiStart?: number

    Horizontal starting angle

    phiLength?: number

    Horizontal sweep angle size

    thetaStart?: number

    Vertical starting angle

    thetaLength?: number

    Vertical sweep angle size

    instancesCount?: number

    Number of geometry instances to draw.

    topology?: GPUPrimitiveTopology

    Topology to use with this Geometry, sent to the render pipeline. Whether to draw triangles, lines or points (see https://www.w3.org/TR/webgpu/#enumdef-gpuprimitivetopology).

    vertexBuffers?: VertexBufferParams[]

    Array of VertexBufferParams used to create VertexBuffer on geometry creation.

    mapBuffersAtCreation?: boolean

    Whether to map the vertex buffers at creation.