
A highly customizable and lightweight grid shader for the URP. Supports UI, meshes, and flat surfaces, with configurable main and sub-grid lines, alpha background, and wireframe-style rendering.Grid Shader is a versatile and performance-friendly shader package designed for Unity's Universal Render Pipeline(URP). Whether you're creating visual debugging tools, wireframe-style art, architectural layouts, or stylized UI, this shader offers full flexibility to draw clean, customizable grid lines directly on any surface.Easily apply it to 2D planes, 3D meshes, or UI elements to render precision-aligned grid overlays. Configure grid density per axis (X and Y), line color, thickness, sub-grid steps, and even background color with transparency. Sub-grids allow for detailed spacing within your main grid, offering further visual control for prototyping, design tools, or technical illustrations.When applied to meshes with well-defined UV mapping, Grid Shader can simulate a clean and stylized wireframe effect, making it ideal for visual debugging or creative rendering styles.Ideal for developers and artists who need real-time grid visualization with total aesthetic control.Supports the following Unity versions:Unity 2022Unity 6000.0 (Unity 6.0)Unity 6000.2 (Unity 6.2)Supported Targets: Meshes, Planes, UI Elements (UGUI/Canvas)Grid Settings:Adjustable number of grid cells (X and Y)Main grid line thickness and color with alpha controlSub-grid step intervals for both axesSub-grid line color with alpha control and thicknessTransparent background color with alpha controlSpecial Effects:Mesh-compatible for stylized wireframe effects based on well-defined UV mappingFully customizable in real time through material propertiesPerformance: Optimized for real-time applicationsKey FeaturesCustomizable Main Grid - Control grid count, color with transparency, and line thickness on both X and Y axesAdvanced Sub-Grid System - Define step sizes and visual styles for sub-grids independentlyAlpha Background Color - Set transparent or semi-transparent backgrounds for clean overlaysMesh Compatibility - Apply to any mesh for a wireframe-style visualization, rendered along - well-defined UV mappingUI Integration - Works seamlessly with Unity's Canvas UI for HUDs, overlays, and editorsReal-Time Adjustment - All parameters exposed for live tuning in the InspectorLightweight & Optimized - Minimal performance impact, suitable for runtime usePlug & Play - No scripting required; ready-to-use material presets includedadvanced use