
The complete Grid shader with fixed line thickness, distance-based, soft mask fading, multi-layer support and more.🧭 Precision gridlines for strategy, simulation, and design toolsProject clean, anti-aliased, distance-fading gridlines directly into world space — with full control over grid size, line thickness, and fade behavior. Built for all render pipelines (BRP, URP, HDRP) with performance and clarity in mind.🔹Features✅ World- or local-space aligned grid: Projects cleanly over any surface — perfect for terrain overlays, planning tools, simulation systems, and RTS-style maps.📏 Multi-layer support: Blend two grid layers (e.g. 1m / 10m) through one material shader.🎯 Fixed line thickness: Gridlines retain constant width in world units — no matter the grid spacing or camera zoom.🧪 Anti-aliased lines: Uses screen-space derivatives to reduce shimmer and aliasing at distance.🔄 Camera distance fade: Fade grids out smoothly with configurable start/end range and fade strength for each layer.🟡 Soft mask fade: Fade out towards a certain world position, e.g. character position or cursor world position.🎨 Texture fill: Fill individual tiles in the grid with colors from a texture, allowing you to show different states such as walkable, weights, or other.⚙️ Fully runtime configurable: Control any settings during runtime for varying and smooth effects.🔧 Use CasesGrand strategy / 4X world mapsTactical overlays and unit planningCity building zone previewsTerrain editing and design toolsSimulation grids (heatmaps, influence zones)📦 Includes1× Grid Decal Shader (Shader Graph) for Universal and High Definition Render Pipelines1× HLSL Grid Shader for Built in Render Pipeline3× Material templates with exposed controls per Render Pipeline1× Demo scene with examples on show per Render Pipeline1x Full Documentation in HTML format🧱 RequirementsUnity 2021.3+Decal Projector support enabled (in HDRP and URP)Requires Unity 2021.3+ LTS or newer