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
| class_name CompJumpFlood | |
| extends RefCounted | |
| # -------------- | |
| var distance_texture: RID: | |
| get: | |
| return _distance_texture | |
| # -------------- |
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 System.Collections.Generic; | |
| using UnityEngine; | |
| public class DebugUtils | |
| { | |
| public static void DrawNumber(Vector3 position, float horizontal_size, float number, Color color) | |
| { | |
| float letter_padding = 0.2f * horizontal_size; | |
| Vector3 draw_direction = Vector3.right; | |
| // position is assumed to be bottom left |