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
using System; | |
using System.IO; | |
using System.Linq; | |
using System.Collections; | |
using System.Collections.Generic; | |
using UnityEngine; | |
using UnityEngine.SceneManagement; | |
using UnityEngine.AI; |
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
Shader "TextMeshPro/Distance Field-BillboardFacing" | |
{ | |
// Very, very slightly tweaked version. Works in 2022.1.18f1 URP 13.1.8 | |
// Enjoy! | |
// - Jonah | |
// Billboarding version for TextMeshPro (tested in 2018.3), based on default Distance Field shader. | |
// ** Important part is to DISABLE the dynamic batching! (happens in this shader) ** | |
// ...Took a while to figure out that one. |