Transform UV coords on top cube's side in perspective
08:03 16 Feb 2026

I have such "cube" mesh:

cube

But I want to transform texture on cube's top side, so that it looks like the right/left/back cube's sides texture are continuing (like green lines I drew):

cube2

How I can do this? I know I need to transform UV coords somehow depends on camera matrices, any ideas?

math glsl directx vulkan hlsl