World Position Offset in Clip Space

I am trying to deform mesh in clip space coordinates. To transform vertex position I use two custom nodes using:

for transform to Clip:

mul(float4(In.xyz,1),View.WorldToClip)

and back to world:

mul(float4(In.xyz,1),View.ClipToTranslatedWorld)

But for some reason example below creates orthographic projection…
In example blow, expected result should be- no deformation.

How to get Word to Clip and Reversed transformation in Material Editor?

Did you ever find a solution to this?

unfortunately, no

Try CameraOffset node?

Use View.ClipToWorld instead of View.ClipToTranslatedWorld.

// World = TranslatedWorld - PreViewTranslation
// TranslatedWorld = World + PreViewTranslation

1 Like

If you do this, the operations are inverses of each other:

1 Like