Phaser API Documentation

batchVert(x, y, u, v, unit, tintEffect, tint)


Adds a single vertex to the current vertex buffer and increments the vertexCount property by 1.

This method is called directly by batchTri and batchQuad.

It does not perform any batch limit checking itself, so if you need to call this method directly, do so in the same way that batchQuad does, for example.


name type description
x number

The vertex x position.

y number

The vertex y position.

u number

UV u value.

v number

UV v value.

unit number

Texture unit to which the texture needs to be bound.

tintEffect number | boolean

The tint effect for the shader to use.

tint number

The tint color value.

Since: 3.50.0