Skip to content

Instantly share code, notes, and snippets.

@pajama
pajama / WorldNormalFromDepthTexture.shader
Last active March 25, 2022 15:07 — forked from bgolus/WorldNormalFromDepthTexture.shader
updated to support single pass instanced rendering and URP render passes with color buffer
Shader "WorldNormalFromDepthTexture"
{
Properties {
_ScanDistance("Scan Distance", float) = 0
_ScanWidth("Scan Width", float) = 10
_LeadSharp("Leading Edge Sharpness", float) = 10
_LeadColor("Leading Edge Color", Color) = (1, 1, 1, 0)
_MidColor("Mid Color", Color) = (1, 1, 1, 0)
_TrailColor("Trail Color", Color) = (1, 1, 1, 0)
_HBarColor("Horizontal Bar Color", Color) = (0.5, 0.5, 0.5, 0)