Class: MeshSimple

MeshSimple

The Simple Mesh class mimics Mesh in PixiJS, providing easy-to-use constructor arguments. For more robust customization, use Mesh.

new MeshSimple (options) overrides

Name Type Description
options SimpleMeshOptions

Options to be used for construction

Extends

Members

autoUpdate boolean

Upload vertices buffer each frame.

vertices Float32Array

Collection of vertices data.

Inherited Properties

From class Mesh

geometry inherited

Includes vertex positions, face indices, colors, UVs, and custom attributes within buffers, reducing the cost of passing all this data to the GPU. Can be shared between multiple Mesh objects.

material inherited

Alias for shader.

roundPixels inherited

Whether or not to round the x/y position of the mesh.

shader inherited

Represents the vertex and fragment shaders that processes the geometry and runs on the GPU. Can be shared between multiple Mesh objects.

texture inherited

The texture that the Mesh uses. Null for non-MeshMaterial shaders