fix backface culling, add atomic check but still have bugs