Grid Shader
About
This grid shader has been created in Unreal Engine. The shader is interactive through exposed material parameters, which allow the developer to modify various properties.
Grid parameters:
Base
Texture: Controls the grid texture.
Enable World Aligned Texture: Enables world space tiling.
Enable Color Overlay: Enables a grid color overlay.
Enable Texture Fade: Allows the grid texture to fade into a solid color at a specified distance.
Enable Fresnel: Enables a fresnel effect.
Fresnel Banding: Controls the fresnel banding.
Color
Overlay Color: Controls the overlay color.
Border: Controls the border color (RGB channel).
Cross: Controls the cross color (R channel).
Square Set 1: Controls the top left and bottom right square color (G channel).
Square Set 2: Controls the top right and bottom left square color (B channel).
Fade
Color: Controls the fade color.
Range: Controls the distance at which the texture starts fading.
Offset: Controls the distance at which the texture is completely faded.
Tiling
Tiling: Controls the world space tiling.
U Tiling: Controls the U tiling.
V Tiling: Controls the V tiling.
This shader works in both Unreal Engine 4 and Unreal Engine 5. Installation guide is included.