Skew perspective for a top-down view

I would like to skew the perspective like A link between worlds:
Top-down trick
But I would like to keep the geometry correct for shaders (shadows, light…). How to do it?

maybe add local y * 0.02 to transformed y, for example - using material.onBeforeCompile

I have never used onBeforeCompile. Can you give an example?

something like this.

Maybe its postprocess like glitch or underwater. Or you add custom postprocess shader

sorry I have missed this part:

this is the opposite of what onBeforeCompile would do :sweat_smile:

then, you can limit the camera to show only the top part, where things get naturally skewed - for example like this