Skew is a study case project that shows how to achieve a skew effect on 3D meshes.
- Unity 2019.3.0a12+
- Universal Rendering Pipeline
- Built-In Rendering Pipeline
Create a material that uses the SkewLit shader (if using URP), or the Skew shader (if using the Built-In RP) and apply it to a mesh.
- Skew Strenght: intensity of the skew effect.
- Skew Offset: starting position of the skew effect. Leaving it to 0 will skew the object based on the local origin.
Check the SkewExample scene for an example: by animating the Skew Strength property and the transform scale we can create a simple jelly effect.
SkewExample.mp4
- Extend to SpriteRenderer and UI elements.