World Aligned Texture and object surface orientation

Is it possible to use World Aligned Texture that would align depending on object’s surface orientation? Let me explain with this picture:

… Or achieve something similar without World Aligned Texture?

I’m afraid it’s not possible, but well… imho worth asking :slight_smile: