Distortion Shader

Use the SF Heat Distortion shader for creating a distortion effect around the center of the black hole. You can find all shadergraphs under the ‘SF Black Hole → ShaderGraphs’ folder.

Configuration:

Distortion

Configure the strength of the applied distortion, Values between 0 and 1

Base

The distortion material is applied on a plane mesh. To avoid that the distortion is rectangular you can set a base mask to set the needed boundaries of the distortion. Distortion will not be applied on black areas of the texture. I used the “Default-Particle” texture for this, but you can play around with any texture that you want to create unique effects.

Rotation

Set the rotation strength. Values between -5 and 5

Twirl Strength

Set how much twirl the distortion should have. Values between 0 and 75, where 0 is zero twirl

Invert Twirl Direction

Per default the twirl strength is applied counterclockwise. To change it to clockwise set this value to true

Example:

Last updated