This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
hader "Unlit/GridOverlay" | |
{ | |
Properties | |
{ | |
_GridSize("Grid Size", Float) = 10 | |
_Grid2Size("Grid 2 Size", Float) = 160 | |
_Grid3Size("Grid 3 Size", Float) = 320 | |
_Alpha ("Alpha", Range(0,1)) = 1 | |
} | |
SubShader |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Originally written by Jason Booth https://gist.github.com/slipster216/3eec15c240066277e69e065a90e1f9fe | |
// Updated by Andrew Ferguson, April 2019. | |
// Upgrade NOTE: replaced '_Object2World' with 'unity_ObjectToWorld' | |
// Upgrade NOTE: replaced 'mul(UNITY_MATRIX_MVP,*)' with 'UnityObjectToClipPos(*)' | |
Shader "Custom/GridShader" { | |
Properties | |
{ |