pixi.js
    Preparing search index...

    Interface MeshOptions<GEOMETRY, SHADER>Advanced

    Options for creating a Mesh instance.

    interface MeshOptions<
        GEOMETRY extends Geometry = MeshGeometry,
        SHADER extends Shader = TextureShader,
    > {
        geometry: GEOMETRY;
        roundPixels?: boolean;
        shader?: SHADER;
        state?: State;
        texture?: Texture;
    }

    Type Parameters

    Hierarchy (View Summary)

    Index

    Properties

    geometry: GEOMETRY

    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.

    roundPixels?: boolean

    Whether or not to round the x/y position.

    shader?: SHADER

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

    state?: State

    The state of WebGL required to render the mesh.

    texture?: Texture

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