Your looking for a triplanar shader they come in a few styles (http://www.blog.radiator.debacle.us/2013/02/a-smoother-triplanar-shader-for-unity.html) This is a nice blog on triplanar shader in world space i.e. the object may move but the texture wont.
Just an update I ended up doing a unity asset for triplanar shaders; I include several variations including basic (x,y,z) tops (top, bottom, sides) and simple (single texture) as well as a world space variant of tops. these come in all the usual Unity forms i.e. bumped, spec, parallax, cutout, etc.
You can find it here (https://www.assetstore.unity3d.com/#/content/15520)
↧