}
textureMat.setFloat2("scale", region.width(), region.height());
textureMat.setFloat2("offset", region.minX(), region.minY());
Rect2f textureArea = texture.getRegion();
textureMat.setFloat2("texOffset", textureArea.minX() + ux * textureArea.width(), textureArea.minY() + uy * textureArea.height());
textureMat.setFloat2("texSize", uw * textureArea.width(), uh * textureArea.height());
textureMat.setTexture("texture", texture.getTexture());
textureMat.setFloat4("color", 1, 1, 1, alpha);
textureMat.bindTextures();