Billboard Shader Rendering Problem

Godot Version

Gofot v4.5.1

Question

I’m making a grass multimesh and used shader billboard and it’s almost perfect, but some instances are rendering on top of others.

void vertex() {
    mat4 modified_model_view = VIEW_MATRIX * mat4(
        INV_VIEW_MATRIX[0],
        INV_VIEW_MATRIX[1],
        INV_VIEW_MATRIX[2],
        MODEL_MATRIX[3]
    );
    MODELVIEW_MATRIX = modified_model_view;
}