How could I do a custom fallof in a triplanar node?

for example to set a texture of grass instead of this smooth lerp that do the triplanar in the falloff
https://www.pinterest.es/pin/303852306107919394#
https://www.pinterest.es/pin/303852306107919394#