Skip to content

Instantly share code, notes, and snippets.

View Viele's full-sized avatar

Christoph Lendenfeld Viele

View GitHub Profile
@Viele
Viele / comp_jump_flood.gd
Created April 16, 2026 18:43
Godot Distance field using jump flood, for reference
class_name CompJumpFlood
extends RefCounted
# --------------
var distance_texture: RID:
get:
return _distance_texture
# --------------
@Viele
Viele / DebugUtils.cs
Created May 29, 2023 10:40
Unity Debug Draw Numbers
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