Seamless Texture based on Gemoetry flow without UV

Hi, is it possible to create a seamless texture flow, based on the geometry, without using the uv?
example attached is based on worldposition…

thanks for ur time