How to use the @pixi/mesh.MeshMaterial.prototype function in @pixi/mesh

To help you get started, we’ve selected a few @pixi/mesh examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github pixijs / pixi.js / packages / canvas / canvas-mesh / src / MeshMaterial.js View on Github external
import { MeshMaterial } from '@pixi/mesh';

/**
 * Renders the mesh using the Canvas renderer
 *
 * @protected
 * @method render
 * @memberof PIXI.MeshMaterial#
 * @param {PIXI.CanvasRenderer} renderer - The canvas renderer.
 * @param {PIXI.Mesh} mesh - Mesh to render.
 */
MeshMaterial.prototype._renderCanvas = function _renderCanvas(renderer, mesh)
{
    renderer.plugins.mesh.render(mesh);
};

@pixi/mesh

Core Mesh functionality

MIT
Latest version published 8 months ago

Package Health Score

88 / 100
Full package analysis