This file contains hidden or 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
| // URPPatchValidator.cs | |
| // Auto-patches URP's Lighting.hlsl to add global UASS (Analytic Soft Shadows) shadow receiving. | |
| // Makes ALL Lit-based materials (including ShaderGraph Lit) receive UASS shadows without | |
| // needing to swap to the standalone "Lit + AnalyticShadows" shader. | |
| // | |
| // Drop this in an Editor/ folder in your Unity project. It runs on every domain reload. | |
| // Tested on Unity 6000.0.3 / URP 17.0.3 — anchor strings may need updating for other versions. | |
| // | |
| // Optional: Add this to your standalone "Lit + AnalyticShadows.shader" around its | |
| // TEXTURE2D_X(_UASSTexture) declaration to avoid duplicate definition errors: |
This file contains hidden or 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
| using UnityEngine; | |
| public class ArrowTipTrigger : MonoBehaviour | |
| { | |
| void OnTriggerEnter(Collider other) | |
| { | |
| SendMessageUpwards("OnArrowTipTriggerEnter", other, SendMessageOptions.RequireReceiver); | |
| } | |
| } |