Fooliage turns white and black depending on distance of viewport

found how to fix it? my fooliage also goes screen space