var flare;

function loadData(entity, data, width, length, res) {
    flare = data.flare;

    if (entity.isDisplayStand() || entity.isBookPlayer()) {
        res.requestResolution(1, 1);
    }
    else {
        res.requestResolution(width, length);
    }
}

function evaluate(mesh, x, y, width, length) {
    mesh.vertX = width * (x + x * y * 2 * flare);
    mesh.vertY = length * y * Math.cos(x * flare);
    mesh.vertZ = Math.sin(y * (x * x + 1)) * 0.4 * flare;
}
