Skip to content

Instantly share code, notes, and snippets.

View snarlynarwhal's full-sized avatar

PJ Legendre snarlynarwhal

View GitHub Profile
@a3geek
a3geek / PoissonDiskSampling.cs
Last active February 13, 2025 02:16
Fast Poisson Disk Sampling for Unity.
using System.Collections.Generic;
using UnityEngine;
namespace Gists
{
// The algorithm is from the "Fast Poisson Disk Sampling in Arbitrary Dimensions" paper by Robert Bridson.
// https://www.cs.ubc.ca/~rbridson/docs/bridson-siggraph07-poissondisk.pdf
public static class FastPoissonDiskSampling
{