updated shader to check if the geometry needs render based on style