webgpu-utils

    Function createCubeVertices

    • Creates the vertices and indices for a cube.

      The cube is created around the origin. (-size / 2, size / 2).

      Parameters

      • params: { size?: number } = {}
        • Optionalsize?: number

          width, height and depth of the cube. Default = 1

      Returns Arrays

      The created vertices.

    MMNEPVFCICPMFPCPTTAAATR