Shaders

Shader: SF Energy Flow

This shader creates an energy flow effect, which is essentially a simple noisy fog scrolling effect. It is used for the energy sphere and portal cables to simulate energy flow. However, it can also be applied to larger objects to create fog-like effects.

For more realistic fog effects, make sure to set the material’s Surface Type to Transparent.

Scroll Speed

Controls the “flow” speed of the energy effect. Higher values make the energy appear to move faster along the object.

Noise Scale

The shader uses a combination of two gradient noise nodes to create the flowing effect. This property defines the amount of noisiness in the material.

0 → no noise, resulting in a uniform glow of the defined color.

1 → maximum noise, creating a highly dynamic energy flow.

Example:

First image: Noise Scale = 0.15

Second image: Noise Scale = 1

Color

Defines the HDR glow color of the energy flow.

Strength

Controls the intensity of the energy flow:

0 → no energy flow

1 → maximum energy flow

⚠️ Note: For the Portal Energy Cube, these values are automatically controlled by the Energy Flow Controller.

Shader: Portal Distortion

Creates a twirly portal view effect

Twirl Strength

Controls the intensity of the twirl effect.

Left image: Twirl Strength = 1

Right image: Twirl Strength = 20

Voronoi Cell Density

Defines the density of the Voronoi noise used in the effect.

The previous twirl examples used a density of 4. Here, a Twirl Strength = 20 with Voronoi Cell Density = 30 produces a much finer pattern.

Speed

Controls the rotation speed of the twirl effect. Higher values make the twirl appear to rotate faster.

Mask

A simple mask to limit the visibility of the effect.

Black areas of the mask will be invisible, while white areas show the effect fully.

Color

Defines the HDR color of the effect.

Dissolve Strength

Controls how much of the effect is dissolved:

0 → full effect visible

1 → nearly completely dissolved

Last updated