Gradient Shader
About
This gradient shader has been created in Unreal Engine. The shader is interactive through exposed material parameters, which allow the developer to modify various properties.
Gradient parameters:
Gradient
Start Color: Controls the start gradient color.
End Color: Controls the end gradient color.
Contrast: Controls the gradient contrast.
Radius: Controls the radius of the radial gradient.
Hardness: Controls the hardness of the radial gradient.
Falloff: Controls the diamond gradient falloff.
Tiling & Offset: Controls the UV tiling and offset. RG = Tiling, BA = Offset. (Use a negative tiling value to flip the UVs.)
Rotation: Controls the rotation angle and anchor point position. R = Angle, G = Anchor point U axis, B = Anchor point V axis. (Use degrees for rotation angle)
Reverse: Reverses the gradient effect.
Convert To sRGB: Converts the gradient from linear to sRGB.
Enable Banding: Enables gradient banding.
Bands: Controls the number of gradient bands.
Gradient Type
Enable Radial Gradient: Replaces the current gradient type with a radial gradient.
Enable Angle Gradient: Replaces the current gradient type with an angle gradient.
Enable Reflected Gradient: Replaces the current gradient type with a reflected gradient.
Enable Diamond Gradient: Replaces the current gradient type with a diamond gradient.
This shader works in both Unreal Engine 4 and Unreal Engine 5. Installation guide is included.